Cannot find correct DB driver
Status: Abandoned
Brought to you by:
tellini
As reported in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=207249
Looks like gcc3.3 is optomising away the first letter
so the
database name compare does not match.
--- libapache-mod-acct-0.5.orig/mod_accounting.c
+++ libapache-mod-acct-0.5/mod_accounting.c
@@ -217,8 +217,10 @@
int i, found = 0;
char *ptr = arg;
- while( *ptr )
- *ptr++ = tolower( *ptr );
+ while( *ptr ) {
+ *ptr = tolower( *ptr );
+ *ptr++;
+ }
// let's see if we have the requested driver
for( i = 0; i < DB_MAX; i++ )
Logged In: NO
yeah do it like *(++ptr) = tolower( *ptr );
Logged In: YES
user_id=912565
patch with this bug fix is commited into patch forum
(http://sourceforge.net/tracker/index.php?func=detail&aid=1249269&group_id=42812&atid=434250)
This patch also provide mod_acct-0.5 to work with apache-2.x
Logged In: NO
i made a little patch for mod_acc for correct work with
mysql 4+. I tested it with mysql 5.0.18. and it works great.
You can grab it here:
http://www.webmechanics.ru/blog/2006/04/04/mod_accounting-05-mysql-5/