Blob Blame History Raw
Use my_make_scrambled_password() rather than the deprecated equivalent
make_scrambled_password(). As of Fedora 15 the latter is not exported
by libmysqlclient.so.


--- pure-ftpd-1.0.30.orig/src/log_mysql.c	2011-03-26 19:14:20.492368416 +0100
+++ pure-ftpd-1.0.30/src/log_mysql.c	2011-03-26 19:16:51.110255978 +0100
@@ -451,7 +451,8 @@
 # if MYSQL_VERSION_ID >= 40100 && MYSQL_VERSION_ID < 40101
         make_scrambled_password(scrambled_password, password, 1, NULL);
 # else
-        make_scrambled_password(scrambled_password, password);
+        my_make_scrambled_password(scrambled_password, password, 
+                                   strlen(password));
 # endif
 #endif
         if (strcmp(scrambled_password, spwd) == 0) {