summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
AgeCommit message (Collapse)Author
2002-06-09strlcpy fix, PR 2727Jun-ichiro itojun Hagino
2002-06-09do not present scopeid on wire format, as it is local to nodeJun-ichiro itojun Hagino
2002-06-04We want sync usage() w/ manual since -4/-6 options have been added.Mike Pechkin
millert@ ok
2002-06-01more snprintfTheo de Raadt
2002-05-30-4 and -6 options; kanai@big.or.jp; itojun okTheo de Raadt
2002-04-25avoid buffer overrun on PASV from malicious server.Jun-ichiro itojun Hagino
http://online.securityfocus.com/archive/1/269356/2002-04-22/2002-04-28/0
2002-03-30stretch bannersTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-19Fix gethostname() usage.Mike Pechkin
deraadt@ ok
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-04Don't longjmp(..., 0)Artur Grabowski
2001-11-14o Don't accept URLs with user:pass@ and an extra unencoded @.Heikki Korpela
@ should be encoded as %40 for passwords and usernames. @ in the pathname portion of the URL is ok. o decode usernames and passwords as per FTP URL specification. spotted by krw@, input from krw@ and fgs@ millert@ ok
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