jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
jmmv
b9173dc41c
Rewrite the loop in printflg(): if passing -Z to pax with syntax errors
...
(like executing "pax -Z" by itself), this caused a shr of 32 bits, which is
undefined behavior (C99) if the variable is 32 bits wide, too. Also solves
a problem where the flgch array could be indexed out of bounds.
Thanks to uwe@ and lha@ for their suggestions... I just found the bug :p
2004-01-05 17:27:46 +00:00
matt
2d72f72583
Don't emit any warnings when tar is trying to figure out if the file is
...
really tar format. valid CPIO files should not trigger a warning from tar.c
2003-11-24 23:48:47 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
fvdl
cf96462927
Don't pass an integer as NULL.
2003-10-21 02:08:14 +00:00
agc
ed6ed8e698
Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.
2003-10-13 07:41:22 +00:00
grant
0faf575771
wait for compression program to finish before exiting.
...
fix races condition resulting in a zero length archive after pax
exits.
patch from OpenBSD, provided by Joerg Sonnenberger in PR bin/22740.
2003-09-18 09:18:24 +00:00
agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
mrg
2512e501f0
note -z is an extention.
2003-07-19 05:43:54 +00:00
lukem
82541d904a
doc2html works here now, so remove NOHTML=
...
(not that it worked here, because NOHTML= was provided *after* <bsd.own.mk>...)
2003-07-18 02:18:49 +00:00
wiz
b65146bf4a
Bump date for -O change.
2003-07-09 14:42:16 +00:00
simonb
1301238ab7
Add support for gnutar's -O "extract to stdout" option.
2003-07-08 06:00:48 +00:00
christos
d1a05abed1
Revert previous change, and fix the -T problem differently: When the options
...
of the second argument are exhausted, call the appropriate getopt() routine
to process the rest of the arguments instead of finishing option processing.
Fixes:
tar cf - -T foo
2003-06-24 16:23:31 +00:00
grant
a47ed375c9
backout previous; it was a missing prototype elsewhere.
...
noted by mrg.
2003-06-24 08:27:30 +00:00
grant
8560ab3c2b
add cast to fix an integer -> pointer warning.
2003-06-24 06:41:51 +00:00
grant
d884498b98
no need for HAVE_LCHOWN and HAVE_LCHMOD anymore.
2003-06-23 13:33:15 +00:00
christos
051ff2c46c
Simplify the way we deal with old argument style. Old way was broken when
...
tar cf - -T dir
2003-06-23 13:15:15 +00:00
christos
6ebfa08f43
spelling
2003-06-23 13:14:43 +00:00
grant
9432809ee1
consistently use "cannot" instead of "can not".
2003-06-23 13:06:53 +00:00
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
lukem
17887a5d2c
#ifdef HOSTPROG then explicitly use {major,minor,makedev}_netbsd
...
macros from pack_dev.h instead of the native versions.
Fixes [toolchain/20051] by Valeriy E. Ushakov.
2003-05-09 01:09:13 +00:00
itojun
f703f13276
use sizeof for safety
2003-05-09 00:56:56 +00:00
wiz
dcc13ddb7d
Some grammar and punctuation fixes from jmc@openbsd.
2003-05-01 13:50:58 +00:00
christos
d0fa76e947
PR/21253: Manuel Bouyer: cpio should never descend on a directory; even on
...
the first one.
2003-04-21 22:10:10 +00:00
christos
c59371a05d
PR/6195: Matt Watson: Pax fails for paths of exactly 100 characters.
...
make sure that we don't strlcpy more than the source buffer.
2003-04-20 21:41:52 +00:00
wiz
99193808f4
Bump date for last.
2003-04-16 12:41:36 +00:00
grant
900b115e8d
some mdoc fixes.
2003-04-10 06:07:40 +00:00
christos
c8921f6410
PR/21064: Perry Metzger: Re-add -k to tar (--keep-old-files)
2003-04-08 15:13:10 +00:00
wiz
6457ab4776
Remove sentence describing pax's -X option. From Jim Bernard in PR 21009.
2003-04-04 19:19:43 +00:00
christos
051306e25d
PR/18959: Xavier HUMBERT: Don't pay attention to sockets in gnu-tar mode.
2003-03-31 20:30:28 +00:00
christos
00e1c042e9
Detect and report end of archive properly ala' gnu tar.
2003-03-31 20:24:52 +00:00
christos
a0dbdefc9c
PR/20495: Soren Jacobsen: Add -j [bzip2] compression to tar.
2003-03-31 20:10:08 +00:00
christos
2cdcd6cab2
RP/8227: Peter Seeback: Emulate old gnu tar better.
2003-03-31 20:06:33 +00:00
christos
b399e96d11
No other program prints errors inside angle brackets!
2003-03-04 19:19:25 +00:00
grant
8a22d7d46d
call setprogname()
2003-03-03 11:42:36 +00:00
wiz
e04df3a3d6
Add support for '-j' to create (and extract, but -z already did that)
...
bzip2 compressed tar files, for GNU tar compatibility.
Patch from Soren Jacobsen in PR 19467, okayed by christos.
Sync usage with options while here.
2003-02-25 13:36:59 +00:00
wiz
43c2fa4e77
New sentence, new line.
2003-02-25 13:30:07 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
lukem
68df873854
When writing (-w) or copying (-rw), and using -M (stdin file list is
...
mtree(8) specfile), compare the "post write/copy" mtime against the
actual "pre write/copy" mtime instead of the mtime from the specfile.
This prevents warnings such as:
pax: File ./foo was modified during copy to archive
if the file's mtime in the file system is different to what's in the specfile.
(The resultant file will still get the specfile mtime ...)
2003-02-21 01:25:11 +00:00
grant
021cc73e29
add missing braces.
...
from HIRATSUKA Kouichirou in PR bin/20276.
2003-02-10 07:49:57 +00:00
grant
d1391f9f9d
cosmetic error condition improvements.
...
- sprinkle some fflush() to print filenames correctly.
- print a \n to stdout to fix formatting.
- English, consistently use "Cannot" in error messages.
some whitespace cleanup.
2003-02-09 18:27:10 +00:00
wiz
3ac7ce187d
Fix various spelling, grammar, and punctuation problems in comments, from Sergey Svishchev in PR 20164.
2003-02-02 10:21:13 +00:00
simonb
276fd1665c
The Double-Semi-Colon Police.
2003-01-20 05:29:53 +00:00
wiz
0b76bcaac8
tar(1) has no -L any longer.
2003-01-19 01:13:46 +00:00
kristerw
7b4c88f831
Correct which _usage function to use for some pax/cpio error cases.
2003-01-15 21:56:46 +00:00
christos
096c9d6313
remove debugging printf's I accidentally committed.
2003-01-09 18:24:08 +00:00
christos
a86cae9911
PR/19757: Andreas Wrede: make tar's -h behave like pax's -L
2003-01-09 17:26:21 +00:00
christos
e1a41a0e25
print a bit more info about checksum mismatches.
2003-01-09 17:22:26 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
wiz
5673b28631
Whitespace nits.
2002-12-28 21:15:24 +00:00