summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/ftp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and use volatile insteadmillert2001-06-231-37/+13
|
* emit more easier-to-understand error message on port name error. from deraadtitojun2000-10-181-3/+6
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-4/+6
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* initialize result. this fixes the recent problem that makes ftp coredumpfgsch2000-06-271-3/+3
| | | | if epsv4 is disabled. problem reported by price@netdoor.com on misc.
* add epsv4 command, which turns off epsv on ipv4 (off by dfeault)itojun2000-06-211-7/+32
| | | | | | | automagicaslly disable epsv on ipv4, if epsv fails for single connection. merge from netbsd-current. req from fgs.
* if no /etc/services file, use defaults. found by millert, fixed by itojunderaadt2000-05-031-2/+19
|
* ftp(1) from KAME, should be good for testing.itojun1999-12-081-116/+383
|
* Fall back from passive to active if connect() fails. This can happen if the remote server has an ip filter in place (live cvs does).millert1998-12-131-2/+9
|
* write() can do short-writes -- deal; based on rahnds@ codederaadt1998-09-191-3/+14
|
* Make -m flag turn on progress meter in all situationsmillert1998-09-191-6/+10
|
* Don't turn of progress meter when output file is stdout. The meter will go to stderr in this case.millert1998-09-191-3/+2
|
* fd_set is not a structart1998-07-071-7/+7
|
* Fix some problems noted by lukem@netbsd.orgmillert1998-06-081-3/+3
| | | | | | | | 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)
* handle EINTRderaadt1998-05-131-4/+9
|
* make signal handlers save/restore errnoderaadt1998-05-131-2/+4
|
* Fix buffer overflows in quote1(), clear line bufferweingart1998-02-101-2/+3
| | | | | before use. Hopefully, this is the last of the PR# 406 stuff that this will need.
* By default, use passive mode and fall back to active as needed.millert1997-12-171-2/+10
| | | | | The user can specify active only with the -A flag, or use the new FTPMODE envariable.
* getc() -> fgetc() for easy socksification. imp@openbsd.orgmillert1997-09-051-10/+10
|
* Updtaes from NetBSD (lukem)millert1997-09-041-16/+17
| | | | | | | | | | | | | | | | | | | | | 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
* proper msgs display w/ -rmickey1997-08-061-4/+5
|
* Updates from NetBSD (lukem) include -Wall cleanup.millert1997-07-251-17/+53
| | | | More -W* cleanup and in_port_t usage by me.
* (foo *)NULL -> NULLkstailey1997-06-171-6/+6
|
* allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to workderaadt1997-04-231-57/+58
|
* Sync with NetBSD (lukem):millert1997-04-161-100/+3
| | | | | | | | * 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
* Add in recent NetBSD changes we didn't already have:millert1997-03-211-3/+12
| | | | | Always compile complete.c but ifdef out the bits if -DSMALL (christos) reset interactive mode correctly in auto_fetch() mget mode (lukem)
* Add missing line, doh!millert1997-03-141-2/+3
|
* Correct usage of S_IFREG.millert1997-03-141-4/+4
|
* Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress metermillert1997-03-141-20/+75
| | | | and setting times.
* Include signal.h where reasonable and make signal handlers matchmillert1997-02-051-17/+21
| | | | | | | | 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').
* Add back ``-r'' option and fix strncpy() usage and other nits becausemillert1997-02-031-200/+198
| | | | I'm anal. Closer to KNF now.
* Sync with NetBSDmillert1997-02-031-119/+201
|
* "Too much paranoia" + fake domain in anonftp password as some stupid sitesniklas1997-01-081-6/+7
| | | | requires it to at least look sensible.
* strncat botchderaadt1996-12-161-4/+5
|
* optional size argument to hash commandkstailey1996-11-091-12/+10
|
* add -r<seconds> option to retry connection.mickey1996-10-311-7/+9
| | | | dunno how to do optional argument.
* password user@, not user@hostnamederaadt1996-08-021-8/+5
|
* rcsidderaadt1996-06-261-1/+2
|
* correct anonftp passwdderaadt1996-06-031-1/+3
|
* add support for automatic anonftp fetches of host:pathderaadt1996-06-031-0/+9
| | | | | add support for -p portnum might need todo: -N for silence, better exit status for failures
* initial import of NetBSD treederaadt1995-10-181-0/+1512