summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/cmds.c
AgeCommit message (Collapse)Author
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-05string fixes; ok miod henningTheo de Raadt
2003-03-31Treat empty environment variables the same as NULL. henning@ OKTodd C. Miller
2003-01-03be more aware of directory change failures; s@msmith.netTheo de Raadt
2002-07-12malloc/strdup failure not handled; cloder@acm.orgTheo de Raadt
2002-01-04Don't longjmp(..., 0)Artur Grabowski
2001-10-24Misplaced space in fprintf "Execute get, put orappend to initiate transfer"Todd C. Miller
2001-10-01Typo, assign the new restart point to nrestart_point, not restart_point.Todd C. Miller
Fixes an uninitialized use of nrestart_point.
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-26use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2000-12-24Spelling: tripple -> tripleAaron Campbell
2000-06-21add epsv4 command, which turns off epsv on ipv4 (off by dfeault)Jun-ichiro itojun Hagino
automagicaslly disable epsv on ipv4, if epsv fails for single connection. merge from netbsd-current. req from fgs.
2000-06-13Make both ls and dir send a LIST command. Perviously, ls would useTodd C. Miller
NLST but some ftp server (notably wu-ftpd 2.6.x) only list files in the output of NLST. This behavior appears to be RFC conforming and it makes things like "mget *" behave more sanely. To get just the file list you can still use the "nlist" command.
1999-12-08ftp(1) from KAME, should be good for testing.Jun-ichiro itojun Hagino
1999-06-29retreived -> retrievedAaron Campbell
1999-06-10Handle PAGER in a manner consistent with the Single Unix Specification:Paul Janzen
that is, use PAGER rather than "more" if it is defined and non-null, not just if it is defined.
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