summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/main.c
AgeCommit message (Collapse)Author
2000-06-11do not add empty lines to history; always check the size of the returnedFederico G. Schwindt
string by el_gets.
2000-03-22fix overflows, ok aaron@Markus Friedl
1999-12-08ftp(1) from KAME, should be good for testing.Jun-ichiro itojun Hagino
1998-11-21add -m to usage()David Leonard
1998-09-19Make -m flag turn on progress meter in all situationsTodd C. Miller
1998-09-19add -m option to turn on progress meter in non-verbose modeTodd C. Miller
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-13make signal handlers save/restore errnoTheo de Raadt
1998-02-17Add a new option "-o filename" for autofetch mode. Allows use ofTodd C. Miller
"-" to mean stdout. This replaces the old (unreliable) hueristic of checking if stdout is a tty and if not make the output go to stdout.
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-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-10Disable progress meter if started as a bg process. Also don'tTodd C. Miller
print the progress meter if the ftp process is put in the bg (but do print it when/if the process is foregrounded). From Enami Tsugutomo <enami@ba2.so-net.or.jp> with tweaks by me.
1997-06-01fix emacs batch download problem, i thinkTheo de Raadt
1997-04-28Deal with $TERM not being set (like in single user mode).Todd C. Miller
1997-04-23allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to workTheo de Raadt
1997-04-11emacs is dumb too--the $TERM entry that is.Todd C. Miller
1997-04-10Sync with NetBSD (lukem)Todd C. Miller
* support $ftp_proxy for ftp:// transfers [bin/3245] * add "more" & "less" as synonyms for "page" * move editline setup code into controlediting(), and call appropriately. only setup setup terminal if going into interactive mode.
1997-04-05if TERM=dumb disable progress and editing for emacs ange-ftpkstailey
1997-04-01Disable editing when in batch mode. Idea from Theo.Todd C. Miller
This makes ``ftp ftp://some.place.com/some/file &'' work.
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-14Fix problem where tty mode could get clobbered when ftp was suspended.Todd C. Miller
Call el_parse() to catch editrc(5) commands if the command is not known to ftp. Thorsten did all the real work for this :-)
1997-03-14Change an occurrence of if (fromatty) -> if (edit) -- from Thorsten.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-18add -e command line option to suppress use of editline(3)\kstailey
this is useful for Emacs ange-ftp
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-03Turn off progress bar by default as it interacts poorly withTodd C. Miller
"get FILE /dev/tty" and "get FILE |pager" among others.
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-29Break out of infinite loop ftp://home.host/som/path mode if hostTodd C. Miller
does not exist. Also, use herror, not perror if gethostbynam() fails.
1997-01-25split cd() into two pieces, whoever was here last did a bad jobTheo de Raadt
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1997-01-09HTTP fetches would always loop indefinitelyNiklas Hallqvist
1997-01-07some strlen(constant) -> sizeof(ditto) - 1, plus make ftp://host/path workNiklas Hallqvist
1997-01-07Return exit status != 0 if any transfers fail in the commandlineNiklas Hallqvist
specified file fetch mode. Makes backup locations in the ports system work.
1996-12-18support getting multiple files at once, e.gmichaels
"ftp host:pub/tst/test /pub/tst/test2 /pub/tst" will get files "test", then "test2" and then the cd to "pub/tst" on the same host and become interactive without closing/reopening connection each time. (needs leading '/' on every path but the first, as the rest are relative to the first. (a feauture, really))
1996-12-17if pathname given is a valid directory, cd to it at remote, alsomichaels
assume empty pathname means cd to '/', like ncftp (?).
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-09-03http:// support for the command line fetches; useful for the ports subsystemTheo de Raadt
and other scripts. written by brian@saturn.net (and then i clawed at it for a bit..)
1996-06-26rcsidTheo de Raadt
1996-06-03handle ftp://host/pathTheo 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
1996-05-10Fence off NULL args in getcmd() (fixes/works around PR#824)Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt