Commit Graph

7594 Commits

Author SHA1 Message Date
wiz 520ec39eba Some improvements from jmc@openbsd. 2004-07-26 16:05:33 +00:00
wiz 4cea33dc9f Sort options in usage. From Kouichirou Hiratsuka in PR 26388. 2004-07-23 13:45:59 +00:00
wiz 8d2e6d57b9 Document -v. From Kouichirou Hiratsuka in PR 26388. 2004-07-23 13:45:31 +00:00
wiz ea9a32c94e Sync usage with man page; use getprogname(). From Kouichirou Hiratsuka
in PR 26387.
2004-07-23 13:44:17 +00:00
wiz 73045ab3f6 Add -E to usage; use getprogname(). From Kouichirou Hiratsuka in PR 26281. 2004-07-23 13:35:22 +00:00
wiz ce7465482b Sort options. From Kouichirou Hiratsuka in PR 26281. 2004-07-23 13:35:02 +00:00
wiz 3ce5fd4931 Sync usage with man page; use getprogname().
From Kouichirou Hiratsuka in PR 26280.
2004-07-23 13:33:22 +00:00
wiz fce3c402ee Sort options in usage and SYNOPSIS, and adapt usage to man page.
From Kouichirou Hiratsuka in PR 26279.
2004-07-23 13:31:50 +00:00
wiz 9c97cd1d5a Uppercase CPU. 2004-07-23 13:29:17 +00:00
wiz d33e19fa7e Drop trailing whitespace. 2004-07-23 13:28:55 +00:00
wiz 1919d4e949 Sync usage with man page. From Kouichirou Hiratsuka in PR 26278. 2004-07-23 13:26:11 +00:00
wiz 2389facffb Sort options in SYNOPSIS. From Kouichirou Hiratsuka in PR 26278. 2004-07-23 13:20:36 +00:00
lukem 85e3997a42 Slightly rework SIGINT handling; if we're exiting the auto-fetch stuff
and sigint_raised is non-zero, reset the handler for SIGINT to SIG_DFL
and raise(SIGINT) so that the appropriate wait(3) status is setup.
Based on solution proposed by Ognyan Kulev.
This should really fix PR [pkg/26351].
2004-07-21 00:09:14 +00:00
lukem 635e66e7d8 Improve parsing of HTTP response headers to be more RFC2616 compliant, and
skip LWS (linear white space; CR, LF, space, tab) and the end of lines and
between the field name and the field value.  This still isn't 100% compliant,
since we don't support "multi line" responses at this time.
This should fix PR [bin/22611] from TAMURA Kent (although I can't easily
find a http server to reproduce the problem against.)

Fix a minor memory leak when parsing HTTP response headers.
2004-07-20 12:46:51 +00:00
lukem 64ab1ddb13 Don't unnecessarily display a 401/407 error when running with -V.
Fix from PR [bin/18535] by Jeremy Reed.
2004-07-20 11:22:27 +00:00
lukem 34f004270e Ensure that "mname" is set in ls() and mls() so that an aborted confirm()
prints the correct name.
Problem highlighted & suggested fix from PR [bin/17766] by Steve McClellan.
2004-07-20 11:05:20 +00:00
lukem 1aa9c35970 If an ftp auto-fetch transfer is interrupted by SIGINT (usually ^C),
exit with 130 instead of 1 (or rarely, 0).
This allows an ftp auto-fetch in a shell loop to correctly terminate the loop.
Should fix PR [pkg/26351], and possibly others.
2004-07-20 10:40:21 +00:00
mycroft 26fc0dfe09 Convert 8-bit signed linear data to unsigned for .wav files. 2004-07-19 19:27:59 +00:00
mycroft 680669cd36 Fix fencepost errors in the conversion functions (making them a bit more like
the kernel versions).
2004-07-19 19:15:05 +00:00
dsl e92cba3e15 Make '0' be a valid number 2004-07-18 10:57:32 +00:00
atatat 14eee8f4cc Rework sys/netipsec/ipsec_netbsd.c to present a more consistent tree.
Rework usr.bin/netstat/fast_ipsec.c to find the stats nodes under the
new names (Kame uses the name stats so we use different ones), as well
as setting slen appropriately between calls to sysctlbyname(), and
providing forward compatibility when actually retrieving stats via
sysctlbyname().

And correct a spelling error.
2004-07-17 16:36:39 +00:00
enami 686e03f5e7 - If fktrace(2) failed, just exit rather than waiting for trace output.
- Reduce #ifdef a bit.
2004-07-16 23:52:01 +00:00
he 7ae4fdd283 Instead of placing largish buffers on the stack, use malloc/free.
Fixes compile problem for sun2.
2004-07-16 22:44:01 +00:00
yamt fb79fa6390 define __GNUC_PREREQ__ if it isn't available on host. 2004-07-15 09:01:29 +00:00
lukem f619a0eb00 Fix bug in Christos' recent cleanup which broke the "help" and "rhelp" commands. 2004-07-15 08:50:10 +00:00
wiz 0d19b8b1c0 * add [] to -p
* sort options
* call bad_usage() if unknown option is given

From Kouichirou Hiratsuka in PR 26256.
2004-07-13 12:16:12 +00:00
wiz d6d7b0598f Sort options; from Kouichirou Hiratsuka in PR 26256. 2004-07-13 12:14:07 +00:00
wiz b8c5588d79 Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255. 2004-07-13 12:11:06 +00:00
wiz 5df46dc9cc Sort options. From Kouichirou Hiratsuka in PR 26255 (slightly changed). 2004-07-13 12:09:29 +00:00
wiz f4128b317e Add -d to usage; use getprogname(3). From Kouichirou Hiratsuka in PR 26227. 2004-07-13 12:07:51 +00:00
wiz 5e4aaf0ef0 Sync usage with man page (add [login@], sort options, machine -> host);
print usage to stderr; use getprogname(3).
From Kouichirou Hiratsuka in PR 26225.
2004-07-13 12:06:35 +00:00
wiz 6b6cae1acd Sort options in SYNOPSIS. From Kouichirou Hiratsuka in PR 26225. 2004-07-13 12:02:23 +00:00
wiz 1c7022e424 Sync usage with man page. From Kouichirou Hiratsuka in PR 26224. 2004-07-13 12:00:30 +00:00
wiz 13d5df6555 Sync usage with man page; from Kouichirou Hiratsuka in PR 26223. 2004-07-13 11:59:12 +00:00
wiz d2c6d0c9f5 Sort options in synopsis. 2004-07-13 11:58:55 +00:00
wiz 3408fd1acc Use getprogname(); add -F to usage. From Kouichirou Hiratsuka in PR 26222. 2004-07-13 11:56:24 +00:00
wiz 8ff81120a3 Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
wiz 4e4e99275b Add missing -j to usage; sort as in man page;
use getprogname(). From Kouichirou Hiratsuka in PR 26220.
2004-07-13 11:53:57 +00:00
yamt 5e6cd45b9d fix "gzip -lv a.gz" after gzip.c 1.46. 2004-07-12 10:21:11 +00:00
yamt 284b1b2ac6 another warn -> warnx. 2004-07-12 09:58:10 +00:00
jdolecek 1196c8ba2e consistently quote all values printed in the summary of
the current locale environment ('locale' without arguments)
2004-07-12 08:51:56 +00:00
mrg 2644272f85 in check_outfile() if the outfile exists and -f was given just delete it.
fixes PR#26251.
2004-07-12 02:50:38 +00:00
yamt bd416872f6 fix descriptor leaks on error. 2004-07-11 22:49:42 +00:00
mrg 668894b1c5 - in gz_uncompress() be sure to do the crc/len recalculation insigned.
fixes PR#26246.
- if crc/len are wrong, be sure to noticed it failed
- in check_suffixes(), be sure not to underrun an array (from yamt)
- don't fail so badly on short header, from and fixes R#26242 (also
  from yamt)
- more underrun avoidance in file_uncompress().  fixes PR#26241.
2004-07-11 14:39:39 +00:00
mrg d44ac40080 check the suffix of the input file ala GNU gzip, and error about it
unless -f is given.  fixes PR#26240
2004-07-11 09:40:51 +00:00
mrg e46324f383 move the crc/len code into their own state's to properly allow the buffer
to be refreshed.  re-fixes regress/usr.bin/gzip/concatenated.
2004-07-11 07:01:03 +00:00
mrg 469c821e42 - check for trunated input.
- check each gzip-part's length against the original and warn if it's
  wrong.  fixes part of PR#26233.
- check the input crc32.  fixes the rest of PR#26233.
2004-07-11 06:20:29 +00:00
mrg 7ed5da7ba5 don't assume Z_STREAM_END means end-of-file. fixes PR#26234. 2004-07-11 05:40:51 +00:00
yamt b6ec63a3cc tailing \n is not needed for vwarn(). 2004-07-10 17:35:59 +00:00
wiz d771b2e264 Sort options and add -v to usage. From Kouichirou Hiratsuka in PR 26219,
though done slightly differently (options without arguments always come
first).
2004-07-10 16:12:29 +00:00