Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 11/16/2000 15:15:14
Module Name:	basesrc
Committed By:	lukem
Date:		Thu Nov 16 13:15:14 UTC 2000

Modified Files:
	basesrc/libexec/ftpd: cmds.c conf.c extern.h ftpcmd.y ftpd.8 ftpd.c
	    ftpd.conf.5 version.h

Log Message:
- new ftpd.conf directives:
	maxfilesize	set the maximum size of uploaded files
	sanenames	if set, only permit uploaded filenames that contain
			characters from the set "-+,._A-Za-z0-9" and that
			don't start with `.'

- new/changed command line options:
	-e emailaddr	define email address for %E (see below)
	-P dataport	use dataport as the dataport (instead of ctrlport-1)
	-q		use pid files to count users	[default]
	-Q		don't use pid files to count users
	-u		write entries to utmp
	-U		don't write entries to utmp	[default]
	-w		write entries to wtmp		[default]
	-W		don't write entries to wtmp

	  NOTE:	-U used to mean `write utmp entries'. Its meaning has changed
		so that it's orthogonal with -q/-Q and -w/-W. This isn't
		considered a major problem, because using -U isn't going to
		enable something you don't want, but will disable something
		you did want (which is safer).

- new display file escape sequences:
	%E	email address
	%s	literal `s' if the previous %M or %N wasn't ``1''.
	%S	literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
  appropriate ftpd.conf(5) directives (which are defaults, but it pays
  to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
  supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
  parser; they're merged into a common check_write() function which is
  called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 basesrc/libexec/ftpd/cmds.c
cvs rdiff -r1.35 -r1.36 basesrc/libexec/ftpd/conf.c
cvs rdiff -r1.34 -r1.35 basesrc/libexec/ftpd/extern.h
cvs rdiff -r1.55 -r1.56 basesrc/libexec/ftpd/ftpcmd.y
cvs rdiff -r1.60 -r1.61 basesrc/libexec/ftpd/ftpd.8
cvs rdiff -r1.110 -r1.111 basesrc/libexec/ftpd/ftpd.c
cvs rdiff -r1.13 -r1.14 basesrc/libexec/ftpd/ftpd.conf.5
cvs rdiff -r1.21 -r1.22 basesrc/libexec/ftpd/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.