SOURCES: pure-ftpd-anonymous.patch (NEW) If -E is specified (no an...
arekm
arekm at pld-linux.org
Thu Jun 28 13:31:55 CEST 2007
Author: arekm Date: Thu Jun 28 11:31:55 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
If -E is specified (no anonymous logins) then treat "ftp" and "anonymous" logins like normal user logins
---- Files affected:
SOURCES:
pure-ftpd-anonymous.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/pure-ftpd-anonymous.patch
diff -u /dev/null SOURCES/pure-ftpd-anonymous.patch:1.1
--- /dev/null Thu Jun 28 13:31:55 2007
+++ SOURCES/pure-ftpd-anonymous.patch Thu Jun 28 13:31:50 2007
@@ -0,0 +1,13 @@
+; If -E is specified (no anonymous logins) then treat "ftp" and "anonymous" logins like normal user logins
+diff -urN pure-ftpd-1.0.21.org/src/ftpd.c pure-ftpd-1.0.21/src/ftpd.c
+--- pure-ftpd-1.0.21.org/src/ftpd.c 2006-02-21 14:14:49.000000000 +0100
++++ pure-ftpd-1.0.21/src/ftpd.c 2007-06-28 13:29:57.644688176 +0200
+@@ -1153,7 +1153,7 @@
+ return;
+ }
+ if (anon_only <= 0 && username != NULL && *username != 0 &&
+- strcasecmp(username, "ftp") && strcasecmp(username, "anonymous")) {
++ (anon_only < 0 || (strcasecmp(username, "ftp") && strcasecmp(username, "anonymous")))) {
+ strncpy(account, username, sizeof(account) - 1);
+ account[sizeof(account) - (size_t) 1U] = 0;
+ addreply(331, MSG_USER_OK, account);
================================================================
More information about the pld-cvs-commit
mailing list