summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/ftp.c
AgeCommit message (Collapse)Author
2000-05-03if no /etc/services file, use defaults. found by millert, fixed by itojunTheo de Raadt
1999-12-08ftp(1) from KAME, should be good for testing.Jun-ichiro itojun Hagino
1998-12-13Fall back from passive to active if connect() fails. This can happen if the ↵Todd C. Miller
remote server has an ip filter in place (live cvs does).
1998-09-19write() can do short-writes -- deal; based on rahnds@ codeTheo de Raadt
1998-09-19Make -m flag turn on progress meter in all situationsTodd C. Miller
1998-09-19Don't turn of progress meter when output file is stdout. The meter will go ↵Todd C. Miller
to stderr in this case.
1998-07-07fd_set is not a structArtur Grabowski
1998-06-08Fix some problems noted by lukem@netbsd.orgTodd C. Miller
o getopt string is wrong in main(); (missing : after P) o use of vprintf(...) instead of vfprintf(ttyout,...) in ftp.c::command() o missing \n in fputs in cmds.c::status() o should use strtol() instead of atol() o sometimes use 'NULL' instead of 'NUL' (in comments)
1998-05-13handle EINTRTheo de Raadt
1998-05-13make signal handlers save/restore errnoTheo de Raadt
1998-02-10Fix buffer overflows in quote1(), clear line bufferTobias Weingartner
before use. Hopefully, this is the last of the PR# 406 stuff that this will need.
1997-12-17By default, use passive mode and fall back to active as needed.Todd C. Miller
The user can specify active only with the -A flag, or use the new FTPMODE envariable.
1997-09-05getc() -> fgetc() for easy socksification. imp@openbsd.orgTodd C. Miller
1997-09-04Updtaes from NetBSD (lukem)Todd C. Miller
bugs fixed: * don't interpret '-' or '|' when a local filename is determined from the remote name (i.e, in mget, and in get with only one argument). This is implemented using an extra argument to recvrequest(). Fixes a major security hole. * clean up memory leak when using globulize() * clean up a couple of comments * fix wording in TNF copyright features added: * support for TIS fwtk gate-ftp servers: * read defaults from $FTPSERVER && $FTPSERVERPORT * start in gate-ftp mode if invoked as 'gate-ftp' * toggle or set with 'gate [host [port]]' Other changes: * use symbolic flags in access(2) * Use USHRT_MAX, not 0xffff
1997-08-06proper msgs display w/ -rMichael Shalayeff
1997-07-25Updates from NetBSD (lukem) include -Wall cleanup.Todd C. Miller
More -W* cleanup and in_port_t usage by me.
1997-06-17(foo *)NULL -> NULLkstailey
1997-04-23allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to workTheo de Raadt
1997-04-16Sync with NetBSD (lukem):Todd C. Miller
* differentiate between being connected, and being logged in * cleanup some text messages * support username & password ftp URLs (ftp://user:pass@host/) in non-proxy situations; assume proxy supports it for proxy situations. * cd to / before performing any autofetch transfers
1997-03-21Add in recent NetBSD changes we didn't already have:Todd C. Miller
Always compile complete.c but ifdef out the bits if -DSMALL (christos) reset interactive mode correctly in auto_fetch() mget mode (lukem)
1997-03-14Add missing line, doh!Todd C. Miller
1997-03-14Correct usage of S_IFREG.Todd C. Miller
1997-03-14Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress meterTodd C. Miller
and setting times.
1997-02-05Include signal.h where reasonable and make signal handlers matchTodd C. Miller
what signal(3)'s prototype says (and cast when not). Also change MAXFOO+1 -> MAXFOO since MAXFOO includes the NULL. Support $TMPDIR and use utime(3) not utimes(2) for portability's sake. Don't spew "Passive mode enabled/disabled" unless verbose (this means togglevar() needs to watch for a NULL 'message').
1997-02-03Add back ``-r'' option and fix strncpy() usage and other nits becauseTodd C. Miller
I'm anal. Closer to KNF now.
1997-02-03Sync with NetBSDTodd C. Miller
1997-01-08"Too much paranoia" + fake domain in anonftp password as some stupid sitesNiklas Hallqvist
requires it to at least look sensible.
1996-12-16strncat botchTheo de Raadt
1996-11-09optional size argument to hash commandkstailey
1996-10-31add -r<seconds> option to retry connection.Michael Shalayeff
dunno how to do optional argument.
1996-08-02password user@, not user@hostnameTheo de Raadt
1996-06-26rcsidTheo de Raadt
1996-06-03correct anonftp passwdTheo de Raadt
1996-06-03add support for automatic anonftp fetches of host:pathTheo de Raadt
add support for -p portnum might need todo: -N for silence, better exit status for failures
1995-10-18initial import of NetBSD treeTheo de Raadt