summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
AgeCommit message (Collapse)Author
2004-02-28Open a new connection for each URL given on the command line.Kenneth R Westerback
This eliminates problematic 'CWD /' commands that caused interactive commands and auto fetch commands to occaisonally end up in different directories, creating problems for the install scripts. Problematic 'CWD /' commands noticed by deraadt@. ok millert@.
2003-12-16for -DSMALL, do not include rcsid[]sTheo de Raadt
2003-11-20build statically, to ease disaster recovery in some situations.Ted Unangst
ok david@ grange@ henning@ ian@ jakob@ lebel@ markus@ and possibly a few others.
2003-11-20ftp.1:Jason McIntyre
- simpler macros - sort options - some updates - remove some old groff stuff main.c: sync usage()
2003-10-31New libedit api changes.Otto Moerbeek
Tested by djm@, mouring@, jmc@. ok deraadt@
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-08-15remove extra \n in {warn,err}{,x} callsTheo de Raadt
2003-08-11The empty() function basically effects a poll, so replace it withTodd C. Miller
real poll(). Gets rid of another static select(). OK deraadt@
2003-07-15.Ql Fl -> .Sq Fl where literal doesn't make sense;Jason McIntyre
2003-07-02protosTheo de Raadt
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-07Some NetBSD changes were committed to this file w/o updating theTodd C. Miller
copyright. I have gone through the cvs logs and added the appropriate NetBSD Foundation copyright corresponding to those changes.
2003-04-05string fixes; ok miod henningTheo de Raadt
2003-03-31Treat empty environment variables the same as NULL. henning@ OKTodd C. Miller
2003-03-31ascii -> ASCIIJason McIntyre
2003-03-18small typos;Jason McIntyre
ok miod@
2003-03-11getnameinfo buffer has to be NI_MAXHOSTJun-ichiro itojun Hagino
2003-03-11check error on getnameinfo failure.Jun-ichiro itojun Hagino
2003-03-10correct use of getnameinfo. PR 3138Jun-ichiro itojun Hagino
2003-02-17Fix double free; Brian PooleTodd C. Miller
2003-01-22line2 may overrun if line is too long (> 200). be more careful on strcpy.Jun-ichiro itojun Hagino
XXX strlen(argv[x]) should be checked before copies. netbsd 1.18 -> 1.19, requested by David Krause
2003-01-03be more aware of directory change failures; s@msmith.netTheo de Raadt
2002-12-30minor KNFTheo de Raadt
2002-12-19only do "Trying ..." if verboseTheo de Raadt
2002-11-08http redirect support; adapted from NetBSD.Federico G. Schwindt
2002-07-12malloc/strdup failure not handled; cloder@acm.orgTheo de Raadt
2002-07-04document port allocationJakob Schlyter
2002-07-04use tcp high portrange for active data connections. ok deraadt@Jakob Schlyter
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