Commit Graph

585 Commits

Author SHA1 Message Date
lukem
ee0aef00c4 Add -x xferbufsize to set xferbuf size.
Implement  -x xferbufsize  set the socket send and receive buffer size,
as per 'xferbuf' in interactive mode.

Patch from Nicholas Mills (via private mail), with minor adjustment by me.
2015-04-23 23:31:23 +00:00
christos
eea786b46d Increase the buffer limit; otherwise files in:
http://www.taxdetective.ca/Samples/sampledatafiles.html

fail.
2015-01-12 14:17:08 +00:00
lukem
b315b2bb36 Version 20141026
Ignore special characters unless they're from the command line.
Fixes CVE-2014-8517
2014-10-31 03:27:18 +00:00
christos
d138fe3e34 don't pay attention to special characters if they don't come from the command
line (from jmcneill)
2014-10-26 16:21:59 +00:00
joerg
d9c7ee5b63 Annotate functions using format strings. 2014-01-07 02:07:08 +00:00
christos
71c18b90bc more volatile for m68k 2013-11-07 02:06:51 +00:00
christos
b4ab7d1288 let progressmeter deal with the timeout once we've started transferring. 2013-11-03 14:45:50 +00:00
christos
422740a7f1 PR/34796: Hauke Fath: ftp does not timeout on http fetches. 2013-11-02 19:55:47 +00:00
lukem
fc12eae8b6 Version 20130220: restart fix, SYST response parsing improvement 2013-05-05 10:40:19 +00:00
christos
964e4f5784 fix restart from anon ymous 2013-02-23 13:47:36 +00:00
dsl
41b0a909cc When using the response to SYST to decide whether to default to 'binary'
be a lot less specific.
Kyocera printers report "230 Linux" but really don't want text transfers
of pdf files!
2013-02-19 23:29:15 +00:00
christos
ed82bc80db merry belated x-mas. 2013-02-06 16:37:20 +00:00
christos
ccdf6b9113 backwards compatible with netbsd-6. 2012-12-24 22:12:28 +00:00
christos
e7e7a9f768 compile without SSL 2012-12-22 16:58:51 +00:00
christos
057b4f79a5 document https support, mentioning certificates are not validated, and obey
https_proxy.
2012-12-22 16:57:09 +00:00
christos
f9336fd862 PR/47276: Add https support 2012-12-21 18:07:36 +00:00
is
706521afb9 As discussed on tech-net@: Don't display expected EHOSTUNREACH for all but
the last connect attempts in terse mode.
2012-07-04 06:09:37 +00:00
riastradh
9a313cc58d Clean up #includes in progress(1).
Sort them, omit needless ones, and add omitted needful ones.

Omissions revealed by pilfering the code and trying to build it on
Mac OS X.  We ought to have a better way to reveal these omissions...
2012-06-27 22:07:36 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
apb
daa17451fe subtracting two pointers yields ptrdiff_t, so cast it to int. 2012-02-24 19:53:31 +00:00
apb
bb16246581 When given an URL that contains "://" but is not recognised,
print an error message.  Now "ftp https://foo/bar" prints

    ftp: Unsupported URL scheme `https'

instead of

    ftp: Can't lookup `https:ftp': No address associated with hostname
    ftp: Can't connect or login to host `https:?'
2012-02-24 19:40:49 +00:00
christos
24352c32b9 fix previous; use append instead of write. 2012-01-15 20:43:24 +00:00
christos
65445fb66d make -R work the same in ftp:// like it does for http:// (i.e. work if
there is no local file).
2012-01-15 03:58:28 +00:00
lukem
2c9a7b42f6 Move determination of socket buffer sizes from startup to the first
time a socket is used, as the previous logic assumed AF_INET sockets
were available (which they may not be in an IPv6-only system).
Per discussion with Maxim Konovalov and the FreeBSD problem 162661.
2011-12-10 05:53:58 +00:00
joerg
6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
christos
51a4285889 fix gcc-4.5 warnings 2011-08-14 12:58:15 +00:00
mrg
c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
lukem
f8daa4a728 In ftpvis(), prevent incomplete escape sequences at end of dst,
and ensure NUL-termination of dst.  Also tweak for readibility.
Fix from Uwe Stuehler and Stefan Sperling, via Marc Balmer.
2010-06-05 13:59:39 +00:00
lukem
e451c67901 ftp 20100305: fix http date parsing 2010-03-05 07:45:40 +00:00
lukem
3f853671ff Back to using 'RFC xxxx' instead of 'RFCxxxx' 2010-03-05 07:41:10 +00:00
lukem
cbd600cfd6 Parse HTTP 'Date' entries in the `C' locale rather than the user's.
Fix from [bin/42917] (with minor changes), from KAMADA Ken'ichi.
2010-03-04 21:40:53 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
lukem
7858a04d0e rename argument from "bool" to "val" 2010-01-12 06:50:04 +00:00
lukem
7f19467717 Crank version to 20090915:
* rename internal getline() to get_line() to avoid conflict with libc
* avoid NULL deref in verbose output in an error path
* improve man page markup
2009-11-15 10:03:16 +00:00
christos
3104786862 back out previous; luke says:
'@' is a reserved URI char per RFC 3986, use %40
2009-08-17 09:08:16 +00:00
christos
3ac3892a2a use strrchr to find the last @ because we might want the username to contain
user@domain.
2009-08-16 02:49:23 +00:00
drochner
c2819fbfcf avoid NULL dereference in log output if the command line parser
failed to extract a port number from the URL
2009-08-13 17:55:18 +00:00
roy
7027866a09 Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
joerg
ea92254557 Fix markup. 2009-07-11 18:35:48 +00:00
wiz
d8c85176f3 New sentence, new line. 2009-05-04 19:45:51 +00:00
lukem
a60f776aae Revert incorrect change made as part of the WARNS=4.
Fixes "ftp host [port]" on the CLI.
Noted by Geoff Wing.
2009-04-24 08:57:26 +00:00
jld
d61104a0f0 Another empty-body warning/error, another set of curly braces. This, and
the last one, appear to affect only the NO_DEBUG (e.g., SMALLPROG) build.
2009-04-15 04:19:39 +00:00
jld
882877eb33 Unbreak the build by adding curly braces to placate the empty-body warning. 2009-04-15 03:42:33 +00:00
lukem
3d4efc3511 Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare). 2009-04-12 10:18:52 +00:00
lukem
d8b47884a2 fix -Wshadow issues 2009-04-12 07:07:41 +00:00
joerg
6cb9af04f6 Don't workaround ancient macro argument limit with .Xo/.Xc. Don't use
.Sm off/.Sm on.
2009-03-12 12:35:17 +00:00
lukem
95d5ba4ee0 correct a comment 2008-12-05 05:28:12 +00:00
lukem
b88214a09b update copyrights 2008-09-30 03:41:53 +00:00
gmcgarry
507b8fdd96 getline() returns int. Don't cast to unsigned value and compare with -1. 2008-09-09 00:48:28 +00:00