summaryrefslogtreecommitdiff
path: root/ftp/proftpd/files/patch-bd
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2001-02-11 21:26:53 +0000
committerMichael Haro <mharo@FreeBSD.org>2001-02-11 21:26:53 +0000
commit69f919197f7fdd5ce50872a5a9225a3769eadad8 (patch)
tree10eb0c18dbacf1e5c3397ab71299155d5d091bf5 /ftp/proftpd/files/patch-bd
parentUpdate to 0.12 (diff)
update to 1.2.0rc3
Submitted by: Anders Nordby <anders@fix.no>
Notes
Notes: svn path=/head/; revision=38226
Diffstat (limited to 'ftp/proftpd/files/patch-bd')
-rw-r--r--ftp/proftpd/files/patch-bd21
1 files changed, 21 insertions, 0 deletions
diff --git a/ftp/proftpd/files/patch-bd b/ftp/proftpd/files/patch-bd
new file mode 100644
index 000000000000..7eb41bc857e8
--- /dev/null
+++ b/ftp/proftpd/files/patch-bd
@@ -0,0 +1,21 @@
+--- contrib/mod_sqlpw.c.old Sun Feb 11 20:14:40 2001
++++ contrib/mod_sqlpw.c Sun Feb 11 20:16:00 2001
+@@ -400,9 +400,6 @@
+ int return_type;
+ int retval = AUTH_NOPWD;
+
+- if (!g.sql_passwd || !g.homedir)
+- return DECLINED (cmd);
+-
+ /* Figure out our default return style: Whether or not SQL should
+ * allow other auth modules a shot at this user or not is controlled
+ * by the parameter "SQLAuthoritative". Like mod_pam this
+@@ -418,6 +415,8 @@
+ if ((user = cmd->argv[0]) == NULL)
+ return return_type ? ERROR (cmd) : DECLINED (cmd);
+ if ((pass = cmd->argv[1]) == NULL)
++ return return_type ? ERROR (cmd) : DECLINED (cmd);
++ if (!g.sql_passwd || !g.homedir)
+ return return_type ? ERROR (cmd) : DECLINED (cmd);
+
+ if (!g.pass