]> git.pld-linux.org Git - packages/pure-ftpd.git/blob - pure-ftpd-anonymous.patch
- fix pureftpd.passwd and pureftpd.pdb location in manuals
[packages/pure-ftpd.git] / pure-ftpd-anonymous.patch
1 ; If -E is specified (no anonymous logins) then treat "ftp" and "anonymous" logins like normal user logins
2 diff -urN pure-ftpd-1.0.21.org/src/ftpd.c pure-ftpd-1.0.21/src/ftpd.c
3 --- pure-ftpd-1.0.21.org/src/ftpd.c     2006-02-21 14:14:49.000000000 +0100
4 +++ pure-ftpd-1.0.21/src/ftpd.c 2007-06-28 13:29:57.644688176 +0200
5 @@ -1153,7 +1153,7 @@
6          return;
7      }
8      if (anon_only <= 0 && username != NULL && *username != 0 &&
9 -        strcasecmp(username, "ftp") && strcasecmp(username, "anonymous")) {
10 +        (anon_only < 0 || (strcasecmp(username, "ftp") && strcasecmp(username, "anonymous")))) {
11          strncpy(account, username, sizeof(account) - 1);
12          account[sizeof(account) - (size_t) 1U] = 0;
13          addreply(331, MSG_USER_OK, account);
This page took 3.041483 seconds and 3 git commands to generate.