summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/fetch.c
AgeCommit message (Collapse)Author
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
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).
2000-05-25do not attach incorrect Host: directive if we are using proxy.Jun-ichiro itojun Hagino
Host: directive must be based on original URI, not the proxy address. see RFC2616.
2000-05-15parse RFC2732 ftp URL (ftp://[::1]:21/readme)Jun-ichiro itojun Hagino
2000-05-03if no /etc/services file, use defaults. found by millert, fixed by itojunTheo de Raadt
2000-05-02always attach port in numeric, for HTTP Host: header.Jun-ichiro itojun Hagino
from: chris and mickey XXX Host: header is specified in HTTP/1.1, not HTTP/1.0.
2000-04-24support RFC2732 IPv6 address literal URLs (http://[::1]:80/index.html).Jun-ichiro itojun Hagino
2000-01-09Make 'ftp host:/path/to/file' work again. This got broken during IPV6Todd C. Miller
integration.
2000-01-04fix file:// URL support; broken by KAME supportTheo de Raadt
1999-12-08ftp(1) from KAME, should be good for testing.Jun-ichiro itojun Hagino
1999-02-09if we read less than Content-Length, whine and errorTheo de Raadt
1998-09-30something was too verboase in http fetch modeTheo de Raadt
1998-09-28first cut at file:/ URL supportTheo de Raadt
1998-09-11don't display Retrieving... message unless verbose output desiredMarco S Hyman
1998-05-13oopsTheo de Raadt
1998-05-13try other h_addr_list addresses when connecting, and handle EINTRTheo de Raadt
1998-03-26pass host name with GET request so servers hosting multiple virtualMarco S Hyman
hosts know to which host the given path applies
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-09-11- Move `parsed_url' label such that the next statement after the label isTodd C. Miller
not an "else" (which some strict compilers reject). - If getlogin() fails fall back on getpwuid(getuid()).
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-07-25Updates from NetBSD (lukem) include -Wall cleanup.Todd C. Miller
More -W* cleanup and in_port_t usage by me.
1997-07-24no content-length is OK; cato@ulysses.df.lth.seTheo de Raadt
1997-05-19Make ftp ftp://anonymous:root@your.dom.ain@ftp.our.place.foo/pub/OpenBSD/Todd C. Miller
work. Needed for install scripts to work. I didn't run into this as I was installing from a non-anonymous account.
1997-04-28From NetBSD (lukem):Todd C. Miller
Cleanup parser of ftp://[user:pass@]host[:port]/[dir/][file Should be more robust now. Fixes NetBSD PR #3520.
1997-04-23allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to workTheo de Raadt
1997-04-18Fix problem when fetching files with -a.Todd C. Miller
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-14URL specifiers are case insensitive. Noticed by Theo.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-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