summaryrefslogtreecommitdiff
path: root/ftp/proftpd/files/patch-be
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/proftpd/files/patch-be')
-rw-r--r--ftp/proftpd/files/patch-be21
1 files changed, 21 insertions, 0 deletions
diff --git a/ftp/proftpd/files/patch-be b/ftp/proftpd/files/patch-be
new file mode 100644
index 000000000000..7a6578032734
--- /dev/null
+++ b/ftp/proftpd/files/patch-be
@@ -0,0 +1,21 @@
+--- contrib/mod_mysql.c.old Sun Feb 11 20:19:00 2001
++++ contrib/mod_mysql.c Sun Feb 11 20:21:29 2001
+@@ -100,6 +100,9 @@
+ mysql_get_client_info (), mysql_get_server_info (mysqldb),
+ g.sql_user, g.sql_host);
+
++ if (mysqldb)
++ mysql_select_db (mysqldb, g.sql_dbname);
++
+ return HANDLED (cmd);
+ }
+
+@@ -115,7 +118,7 @@
+
+ /* This forces a quick ping of the remote server, so we know if its there. */
+ if (mysqldb)
+- mysql_select_db (mysqldb, g.sql_dbname);
++ mysql_ping( mysqldb );
+
+ if (!mysqldb
+ || ((error = mysql_query (mysqldb, query))