1 --- ftpd-BSD-0.3.2/ftpd.8 Thu Jul 6 18:24:17 2000
2 +++ ftpd-BSD-0.3.2.new/ftpd.8 Wed Aug 16 13:17:26 2000
4 and requires it use the same source address as the connection came from.
5 This prevents the "FTP bounce attack" against services on both the local
6 machine and other local machines.
10 +from displaying program name and version at the connection startup.
16 making them visible to commands such as
23 +user, instead of default
26 .It Fl T Ar maxtimeout
27 A client may also request a different timeout period;
28 the maximum period allowed may be set to
29 diff -bruN ftpd-BSD-0.3.2/ftpd.c ftpd-BSD-0.3.2.new/ftpd.c
30 --- ftpd-BSD-0.3.2/ftpd.c Fri Jul 7 05:06:04 2000
31 +++ ftpd-BSD-0.3.2.new/ftpd.c Wed Aug 16 13:46:09 2000
34 #if !defined(CMASK) || CMASK == 0
39 int defumask = CMASK; /* default umask value */
40 int umaskchange = 1; /* allow user to change umask value. */
43 #endif /* not ORIGINAL_SOURCE */
45 +#ifndef ORIGINAL_SOURCE
46 +char *anon_ftp_user = "ftp";
52 #ifdef ORIGINAL_SOURCE
53 char *argstr = "AdDhlMSt:T:u:UvP46";
55 -char *argstr = "AdDhlMqSt:T:u:UvP46";
56 +char *argstr = "AdDhlMqSt:T:u:UvP46z:";
57 #endif /* not ORIGINAL_SOURCE */
64 +#ifndef ORIGINAL_SOURCE
66 + anon_ftp_user = strdup(optarg);
74 if (checkuser(_PATH_FTPUSERS, "ftp") ||
75 checkuser(_PATH_FTPUSERS, "anonymous"))
76 reply(530, "User %s access denied.", name);
77 +#ifdef ORIGINAL_SOURCE
78 else if ((pw = sgetpwnam("ftp")) != NULL) {
80 + else if ((pw = sgetpwnam(anon_ftp_user)) != NULL) {