1 diff -bruN ftpd-BSD-0.3.2/ftpd/ftpd.8 ftpd-BSD-0.3.2.new/ftpd/ftpd.8
2 --- ftpd-BSD-0.3.2/ftpd/ftpd.8 Wed Aug 16 13:02:00 2000
3 +++ ftpd-BSD-0.3.2.new/ftpd/ftpd.8 Thu Jul 6 18:24:17 2000
5 and requires it use the same source address as the connection came from.
6 This prevents the "FTP bounce attack" against services on both the local
7 machine and other local machines.
11 -from displaying program name and version at the connection startup.
17 making them visible to commands such as
24 -user, instead of default
27 .It Fl T Ar maxtimeout
28 A client may also request a different timeout period;
29 the maximum period allowed may be set to
30 diff -bruN ftpd-BSD-0.3.2/ftpd/ftpd.c ftpd-BSD-0.3.2.new/ftpd/ftpd.c
31 --- ftpd-BSD-0.3.2/ftpd/ftpd.c Fri Jul 7 05:06:04 2000
32 +++ ftpd-BSD-0.3.2.new/ftpd/ftpd.c Wed Aug 16 12:54:54 2000
35 #endif /* not ORIGINAL_SOURCE */
37 +#ifndef ORIGINAL_SOURCE
38 +char *anon_ftp_user = "ftp";
44 #ifdef ORIGINAL_SOURCE
45 char *argstr = "AdDhlMSt:T:u:UvP46";
47 -char *argstr = "AdDhlMqSt:T:u:UvP46";
48 +char *argstr = "AdDhlMqSt:T:u:UvP46z:";
49 #endif /* not ORIGINAL_SOURCE */
56 +#ifndef ORIGINAL_SOURCE
58 + anon_ftp_user = strdup(optarg);
66 if (checkuser(_PATH_FTPUSERS, "ftp") ||
67 checkuser(_PATH_FTPUSERS, "anonymous"))
68 reply(530, "User %s access denied.", name);
69 +#ifdef ORIGINAL_SOURCE
70 else if ((pw = sgetpwnam("ftp")) != NULL) {
72 + else if ((pw = sgetpwnam(anon_ftp_user)) != NULL) {