Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 10/24/1999 05:31:44
Module Name:	basesrc
Committed By:	lukem
Date:		Sun Oct 24 12:31:44 UTC 1999

Modified Files:
	basesrc/usr.bin/ftp: cmds.c cmdtab.c complete.c domacro.c extern.h
	    fetch.c ftp.1 ftp.c ftp_var.h main.c ruserpass.c util.c

Log Message:
new features:
- add `usage'; displays the usage of a command.
  implemented by calling the c_handler() with argc = 0, argv = "funcname".
- add `passive auto'; does the same as $FTPMODE=auto.
- add `set [option value]'; display all options, or set an option to a value.
- add `unset option'; unset an option.
- add getoptionvalue() to retrieve an option's value, and replace a few
  global variables with calls to this.
- implement cleanuppeer(), which resets various bits of state back to
  `disconnected'. call in disconnect() and lostpeer().
- support completing on `options'.
- improve recovery after a SIGINT may have closed the connection.
  XXX: there's still a couple to fix

other stuff:
- various consistency fixes in the man page.
- ensure that the command usage strings in the code and man page match reality.
- mput/mget: check that the connection still exists before each xfer.
- minor cosmetic changes in confirm().
- set code correctly in sizecmd() and modtime()
- don't need \n in err() strings.
- change lostpeer to take an argument (rather than casting (sig_t)lostpeer
  in signal handlers)
- knf and whitespace police.


To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 basesrc/usr.bin/ftp/cmds.c
cvs rdiff -r1.31 -r1.32 basesrc/usr.bin/ftp/cmdtab.c
cvs rdiff -r1.33 -r1.34 basesrc/usr.bin/ftp/complete.c
cvs rdiff -r1.13 -r1.14 basesrc/usr.bin/ftp/domacro.c
cvs rdiff -r1.47 -r1.48 basesrc/usr.bin/ftp/extern.h
cvs rdiff -r1.90 -r1.91 basesrc/usr.bin/ftp/fetch.c
cvs rdiff -r1.55 -r1.56 basesrc/usr.bin/ftp/ftp.1
cvs rdiff -r1.84 -r1.85 basesrc/usr.bin/ftp/ftp.c
cvs rdiff -r1.43 -r1.44 basesrc/usr.bin/ftp/ftp_var.h
cvs rdiff -r1.64 -r1.65 basesrc/usr.bin/ftp/main.c
cvs rdiff -r1.24 -r1.25 basesrc/usr.bin/ftp/ruserpass.c
cvs rdiff -r1.78 -r1.79 basesrc/usr.bin/ftp/util.c

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