NetBSD/libexec/ftpd
lukem d85f3bb159 * make checkportcmd the default. this breaks third-party proxy ftp but
prevents the ftp bounce attack, and we should be secure out of the
  box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
  if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
  > IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
  file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
  ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
  merge). if root privs have been dropped, and this would be a port <
  IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
  but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
  in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
  for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup
2000-07-23 14:40:48 +00:00
..
Makefile Make things builds with GCC 2.96 2000-07-03 03:34:25 +00:00
cmds.c base64_encode(): separate out the special case for the last 2 bytes, and 2000-07-10 22:41:17 +00:00
conf.c * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
extern.h * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
ftpcmd.y * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
ftpd.8 * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
ftpd.c * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
ftpd.conf.5 * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00
ftpusers.5 * add two new ftpd.conf(5) directives: 2000-07-17 02:30:52 +00:00
logutmp.c convert to ANSI C as per style guide 2000-05-20 02:20:18 +00:00
logwtmp.c convert to ANSI C as per style guide 2000-05-20 02:20:18 +00:00
pathnames.h only define _DEFAULT_CONFDIR if not set. (allows compile-time override) 2000-03-06 21:42:26 +00:00
popen.c - Always close(pdata) if it was a valid filedescriptor before setting it to -1. 2000-05-20 23:34:55 +00:00
version.h * make checkportcmd the default. this breaks third-party proxy ftp but 2000-07-23 14:40:48 +00:00