NetBSD/usr.bin/ftp
lukem ddc3d4ca5a Implement:
int getline(FILE *stream, char *buf, size_t buflen, const char **errormsg)
	Read a line from the FILE stream into buf/buflen using fgets(), so up
	to buflen-1 chars will be read and the result will be NUL terminated.
	If the line has a trailing newline it will be removed.
	If the line is too long, excess characters will be read until
	newline/EOF/error.
	Various -ve return values indicate different errors, and errormsg
	will be changed to an error description if it's not NULL.

Convert to use getline() instead of fgets() whenever reading user input
to ensure that an overly long input line doesn't leave excess characters
for the next input operation to accidentally use as input.

Zero out the password & account after we've finished with it.

Consistently use getpass(3) (i.e, character echo suppressed) when
reading the account data.  For some reason, historically the "login"
code suppressed echo for Account: yet the "user" command did not!

Display the hostname in the "getaddrinfo failed" warning.

Appease some -Wcast-qual warnings.  Fixing all of these requires
significant code refactoring.  (mmm, legacy code).
2005-06-10 00:18:46 +00:00
..
cmds.c Implement: 2005-06-10 00:18:46 +00:00
cmdtab.c copyright maintenance 2005-06-09 16:38:29 +00:00
complete.c copyright maintenance 2005-06-09 16:38:29 +00:00
domacro.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
extern.h Implement: 2005-06-10 00:18:46 +00:00
fetch.c Implement: 2005-06-10 00:18:46 +00:00
ftp_var.h gratuitous whitespace cleanup (before someone else jumps the gun...) 2005-04-11 01:49:31 +00:00
ftp.1 If we mark up RFC, then avoid using "command modifier" for it. 2005-02-20 20:54:01 +00:00
ftp.c Implement: 2005-06-10 00:18:46 +00:00
main.c Implement: 2005-06-10 00:18:46 +00:00
Makefile As dsl points out, sysinst uses the progress bar so put it back on SMALLPROG 2005-02-11 15:13:28 +00:00
progressbar.c copyright maintenance 2005-06-09 16:38:29 +00:00
progressbar.h White space nit 2005-02-10 16:00:38 +00:00
ruserpass.c Implement: 2005-06-10 00:18:46 +00:00
util.c Implement: 2005-06-10 00:18:46 +00:00
version.h Implement: 2005-06-10 00:18:46 +00:00