summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/cmds.c
AgeCommit message (Collapse)Author
1998-09-01use commands("%s", buf); lukemTheo de Raadt
1998-06-08use endptr in a strtl()Todd 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-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.
1998-02-08Apply fix for PR# 406. Thanks toTobias Weingartner
Motomichi Matsuzaki (mzaki@e-mail.ne.jp) for the fix.
1997-09-10Die union wait die!Todd 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-30s/toinitiate/to initiate/kstailey
1997-07-25Updates from NetBSD (lukem) include -Wall cleanup.Todd C. Miller
More -W* cleanup and in_port_t usage by me.
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-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-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-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-29only print passive toggle info is verbose set (like other commands)Todd C. Miller
1997-01-28getcwd() not getwd()Todd C. Miller
1997-01-25split cd() into two pieces, whoever was here last did a bad jobTheo de Raadt
1996-12-24do not need umask fiddlingTheo de Raadt
1996-12-24use mkstemp insteadTheo de Raadt
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-09-28the LIST carried out by mget in remglob() no longer follows symbolic linksbitblt
on its temporary file.
1996-09-16_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible tooTheo de Raadt
1996-09-09Add an fflush; from FreeBSD PR# bin/1589 (msmith@cain.atrad.adelaide.edu.au)Jason Downs
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt