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
lukem
4f152bac9e
Use AF_INET instead of AF_UNSPEC as the default family if !defined(INET6).
...
Avoids problem reported by Matthias Scheler <tron@NetBSD.org>.
2008-08-13 04:59:13 +00:00
lukem
f56a1ee83d
Add TNF to __COPYRIGHT
2008-07-21 23:11:16 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
wiz
b766901d20
Bump date; punctuation improvements.
2008-05-13 09:33:36 +00:00
skd
830972dccc
Bump version string, as per lukem@.
2008-05-10 01:14:57 +00:00
skd
315d173b9f
Add epsv6 and epsv to disable extended passive mode for ipv6 or both ipv4 and ipv6 respectively. This hack is due to our friends a Juniper Networks who break
...
epsv in ipv6. Should be fixed in ScreenOS 6.2.X.
2008-05-10 00:05:31 +00:00
lukem
c63ddfd726
Only attempt to el_parse() a command unknown by the default parser
...
if editing is enabled.
Fixes PR bin/38589
2008-05-05 22:54:11 +00:00
martin
cd22f25e6f
Move TNF licenses to 2 clause form
2008-05-02 18:11:04 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
lukem
b81e94d02a
Use the service name to getaddrinfo() (along with the host name), so that
...
features such as DNS Service Discovery have a better chance of working.
Suggested by David Young <dyoung>.
Display the service name in various status & error messages.
Don't getservbyname() the :port component of a URL; RFC 3986 says it's
just an unsigned number, not a service name.
2008-04-22 12:59:33 +00:00
lukem
69b443d18c
Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
...
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.
2008-01-21 10:31:28 +00:00
reed
e25157a1c9
Sort a command. It was was renamed in 1.113 but not resorted.
...
(I noticed when reading man page but didn't quickly find what I was
looking for.)
Also add a missing period.
2008-01-08 15:28:31 +00:00
lukem
7a69105995
DPRINTF() consistency tweaks
2007-12-05 03:46:33 +00:00
lukem
d4aed48135
Rename HAVE_STRUCT_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
...
to accurately reflect the structure member being used.
2007-12-05 00:15:25 +00:00
wiz
a092695006
Sort options.
2007-12-02 19:40:54 +00:00
lukem
f1fbb660ed
Cast the field precision calculation to int.
...
Should fix the amd64 build problem noticed by Paul Goyette.
2007-08-22 23:47:13 +00:00
lukem
91c7169d78
Improve parsing of chunked transfer chunks per RFC2616:
...
* more stringent chunk-size parsing
* ignore optional trailing ';chunk-ext' stuff, instead of barfing
* detect EOF before final \r\n.
2007-08-22 06:51:41 +00:00
perry
e34be9798b
Never use "utilize". It means exactly the same thing as "use", but it
...
is longer and more cumbersome. It can always be replaced with "use"
without any change in meaning.
2007-08-20 16:07:05 +00:00
lukem
394f30e855
reorder location of "-s srcaddr" in synopsis
2007-08-06 04:42:13 +00:00
lukem
cf78066d81
Update version for:
...
Replace HAVE_SOCKADDR_SA_LEN with defined(HAVE_STRUCT_SOCKADDR_SA_LEN
2007-08-06 03:41:14 +00:00
lukem
6470c9506d
Replace HAVE_SOCKADDR_SA_LEN with defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
2007-07-22 05:02:50 +00:00
lukem
00ff9c6dba
Document about:ftp and about:version.
2007-07-18 06:40:01 +00:00
lukem
d5855ca07b
Enforce restriction that (http) proxied URL fetchs don't support
...
being restarted at this time.
PR #28697 .
2007-06-05 00:31:20 +00:00
tls
4147a3c54a
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
...
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
lukem
f4f2ed1c79
Display times in RFC2822 form rather than using ctime(3), since
...
the former is more explicit about the timezone offset.
2007-05-24 05:05:18 +00:00
lukem
6ca11a7da7
Revert previous "64bit fix" because it actually removed desired functionality.
...
Instead, use the appropriate format specifier & cast to display the time_t.
2007-05-24 02:51:41 +00:00
tnn
fd95c698a3
Unbreak debug printf on 64-bit arches.
2007-05-22 18:02:18 +00:00
lukem
3ba7505832
* main: call tzset() to ensure TZ is setup for other <time.h> functions.
...
* remotemodtime(): use strptime() to parse the reply.
* fetch_url(): ensure struct tm is zeroed before calling strptime().
2007-05-22 05:16:48 +00:00