summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
AgeCommit message (Collapse)Author
2001-10-27Send User-Agent: OpenBSD ftp to WWW servers and proxies.Heikki Korpela
``User agents SHOULD include this field with requests'', from RFC 2616: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43 Patch from and problem reported by Diana Eichert <deicher@sandia.gov> when using proxies with specific browser requirements. Tested by me with the ports mirror-maker makefile / fetch-all script (with and without a proxy). ok millert@
2001-10-24Misplaced space in fprintf "Execute get, put orappend to initiate transfer"Todd C. Miller
2001-10-04More accurate help.Paul Janzen
2001-10-03o Only send port number in the HTTP request 'Host: ' specificationHeikki Korpela
if it is non-default (i.e., != 80) to circumvent bugs in some broken HTTP servers. naddy@ got hit by this with a port, lebel@ spotted the problem. o Print the HTTP request if debug (the ``-d'' flag) is specified. millert@ ok
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-08-22ftp-proxyBob Beck
2001-08-03Add back NUL termination of 'word' in complete() that was erroneouslyTodd C. Miller
removed in strlcpy() conversion. Previously we were trying to strlcpy() a pointer that could be NULL. Now we check that the length != 0 and use memcpy() instead, then NUL terminate by hand to catch the other cases. Core dump noticed by fgs@
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-26use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2001-06-23remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and use ↵Todd C. Miller
volatile instead
2001-06-18Change default transfer type from ascii to binary; closes PR 1626Todd C. Miller
Similar to patch from mpech@prosoft.org.lv
2001-03-09Add a missing newline in debug mode to separate debug output fromTodd C. Miller
line containing command completion; "Brian J. Kifiak" <bk@rt.fm>
2001-03-09Typo in Synopsis; there's a -v option, not -uTodd C. Miller
"Brian J. Kifiak" <bk@rt.fm>
2000-12-24Spelling: tripple -> tripleAaron Campbell
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-18emit more easier-to-understand error message on port name error. from deraadtJun-ichiro itojun Hagino
2000-09-07bogus comment policeTodd T. Fries
2000-09-03Boring... Add :L modifier to all tweakable variables tests.Marc Espie
Closes PR 1246
2000-07-27If the HOME environment variable is not set, do not try to readTodd C. Miller
.netrc from cwd. Mostly paranoia but good practive. Closes PR 1332.
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-06-27initialize result. this fixes the recent problem that makes ftp coredumpFederico G. Schwindt
if epsv4 is disabled. problem reported by price@netdoor.com on misc.
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.
2000-06-11do not add empty lines to history; always check the size of the returnedFederico G. Schwindt
string by el_gets.
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-150-size files still deserve a progress meter; also, after file is finishedTheo de Raadt
transfer, display a non-ETA line with an elapsed time.
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-03-22fix overflows, ok aaron@Markus Friedl
2000-03-07Various cleanup.Aaron Campbell
2000-02-29Various cleanup.Aaron Campbell
2000-02-01Work-around for lame servers that return `19100' for a date.Marc Espie
Based on NetBSD patch, slightly trimmed since we don't use the fractional part yet...
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-07-04correct use of .Nm; some other formatting nitsAaron Campbell
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.
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-02-09correct a default; js3guj@gold.ocn.ne.jpTheo de Raadt
1999-02-09if we read less than Content-Length, whine and errorTheo de Raadt
1998-12-24retreived -> retrievedAaron Campbell
1998-12-16more .Nm fixesAaron Campbell
1998-12-13Fall back from passive to active if connect() fails. This can happen if the ↵Todd C. Miller
remote server has an ip filter in place (live cvs does).
1998-11-21add -m to usage()David Leonard
1998-09-30something was too verboase in http fetch modeTheo de Raadt
1998-09-28first cut at file:/ URL supportTheo de Raadt
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell