1 diff -bruN ftpd-BSD-0.3.2/ftpd/ftpd.c ftpd-BSD-0.3.2.new/ftpd/ftpd.c
2 --- ftpd-BSD-0.3.2/ftpd/ftpd.c Fri Jul 7 05:06:04 2000
3 +++ ftpd-BSD-0.3.2.new/ftpd/ftpd.c Wed Aug 16 12:54:54 2000
6 #endif /* not ORIGINAL_SOURCE */
8 +#ifndef ORIGINAL_SOURCE
9 +char *anon_ftp_user = "ftp";
15 #ifdef ORIGINAL_SOURCE
16 char *argstr = "AdDhlMSt:T:u:UvP46";
18 -char *argstr = "AdDhlMqSt:T:u:UvP46";
19 +char *argstr = "AdDhlMqSt:T:u:UvP46z:";
20 #endif /* not ORIGINAL_SOURCE */
27 +#ifndef ORIGINAL_SOURCE
29 + anon_ftp_user = strdup(optarg);
37 if (checkuser(_PATH_FTPUSERS, "ftp") ||
38 checkuser(_PATH_FTPUSERS, "anonymous"))
39 reply(530, "User %s access denied.", name);
40 +#ifdef ORIGINAL_SOURCE
41 else if ((pw = sgetpwnam("ftp")) != NULL) {
43 + else if ((pw = sgetpwnam(anon_ftp_user)) != NULL) {