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
kleink
1bb01b56ab
Catch up with gen_subs.c rev. 1.27: the verbose output for symbolic links
...
is plain ls -l.
2002-12-19 22:54:44 +00:00
kleink
1c8b4d7b62
Change verbose output for symbolic links from "%s => %s" to "%s -> %s",
...
which matches ls(1) (per POSIX), as well as GNU tar output.
2002-12-19 22:44:31 +00:00
grant
5a72c72255
Fix oops in last, chown() failure should be fatal.
...
Noted by Charles Hannum.
2002-12-19 14:23:53 +00:00
grant
3ac4c54a34
Don't attempt to chown files if euid != 0, and make chown() non-fatal
...
if it does fail.
This addresses my PR bin/18912 (running pkg_info as non-root user on a
binary package).
2002-12-19 14:02:54 +00:00
christos
d4ba6227bf
fix horrible side effect introduced by changing the append mode into archive.
...
The append mode already did that, so we always ended up overwriting the archive.
2002-12-12 05:00:42 +00:00
christos
8461b5b85f
PR/19339: Martin Weber: Tar fails to append on empty files and exits with
...
0. Revert previous change for PR/18689. We always want to exit with
an error if we could not determine the archive format. Instead,
treat empty files specially. On list/extract we turn into no/op.
On append, we turn into archive.
2002-12-10 18:33:26 +00:00
mrg
bad4b3376e
oops, remove a debug statement from the previous.
2002-12-08 02:00:10 +00:00
mrg
c3510d1409
add --exclude support.
...
XXX: --exclude & --exclude-from are still not 100% compatible, but since
rafal fixed --exclude-from's most annoying bug, they mostly work now.
2002-12-08 01:35:12 +00:00
grant
de04ce3463
don't print archive summary twice.
2002-12-05 01:38:05 +00:00
lukem
e825428033
don't need -lutil any more
2002-11-30 03:12:55 +00:00
rafal
7d4cb139a3
Fix lossage with the GNU-tar -X compatibility code: the replacement pattern
...
code did not properly deal with the fact that the replacement patterns built
by the -X code were on the stack, happily saving pointers into last weeks'
stack into the REPLACE structures.
Now, the replacement string is strdup'ed so it doesn't matter where the
original expression came from or it's lifetime.
2002-11-29 04:54:48 +00:00
grant
3c0fae1fef
void functions should not return a value.
2002-11-27 18:40:34 +00:00
wiz
4b956b29cf
Drop a trailing space.
2002-11-06 14:56:48 +00:00
enami
71fcff6ce3
Let the roff to process the end of sentence.
2002-11-06 04:03:25 +00:00
christos
0ec6ea57f7
PR/18831: Andreas Wrede: Don't exit with an error when we are reading a gnu
...
tar archive.
2002-10-27 20:48:15 +00:00
christos
18c0c9959d
ignore files that contain "..", not symlink sources.
2002-10-23 19:39:42 +00:00
lukem
ad24ec889c
don't bother with cpio/tar links or compat symlinks for HOSTPROGs
2002-10-21 06:26:46 +00:00
thorpej
cf6763873c
Install compatibility symlinks for /usr/bin/tar (-> /bin/tar)
...
and /usr/bin/cpio (/bin/cpio). The pathname of tar(1) is hard-coded
into things like binary packages, and thus must be kept around
for backward compatibility.
2002-10-20 21:20:13 +00:00
christos
44303cad48
PR/18733: Jed Davis: stderr is not constant under linux and this is a host
...
tool.
2002-10-20 00:40:29 +00:00
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
christos
2665f9c68c
Only warn the user once about gnu extensions. From Eric Gillespie.
2002-10-18 15:55:08 +00:00
christos
ff3d818d91
Handle -C\ndir\n in a file containing a file list. From Eric Gillespie.
2002-10-18 13:45:05 +00:00
itojun
8eb125554b
exit with 0 if the input is empty of not a tar file. matches GNU tar behavior.
...
solves PR 18689.
2002-10-18 11:54:22 +00:00
christos
ed254499e5
Factor out some more code, and don't expand names in ././@LongLink records.
2002-10-17 01:08:22 +00:00
christos
860d26c69b
Fix DEFOP botch. DEFOP == LIST so tar -tvf stopped working. (hi soren)
2002-10-17 00:42:02 +00:00
christos
4472ef1520
Add proper longlink support. Previously we handled longname support, and
...
the longlink support was completely wrong.
2002-10-17 00:32:36 +00:00
christos
69ea8215e0
add commas between options. Suggested by wiz.
2002-10-16 23:52:06 +00:00
soren
4ba08d1776
Tweak tar_usage().
2002-10-16 23:37:49 +00:00
soren
af892f930e
Have tar require a specific action as documented.
2002-10-16 23:22:59 +00:00
soren
f9d5774005
Sync cpio_usage() with cpio.1 as with pax and tar.
2002-10-16 22:38:36 +00:00
christos
4dbb5fa93c
grr, I put these in the wrong spot.
2002-10-16 21:49:08 +00:00
christos
24dd1a7d61
Document the long options.
2002-10-16 21:47:13 +00:00
christos
169f625866
we need to have -force-local on pax.
2002-10-16 21:45:31 +00:00
christos
f830cb1865
turn gnu tar off by pax and cpio front ends.
2002-10-16 18:53:40 +00:00
christos
706c1ce906
Flip the pax switch
2002-10-16 15:23:59 +00:00
christos
650f61c526
Warn if we are trying to read a gnu tar archive, if --strict is specified.
2002-10-16 04:40:55 +00:00
christos
f70dfaaf73
Support gnu long filename extensions by default for tar on create, list, and
...
extract. We now generate GNU tar archives by default ("ustar ^@" instead of
"ustar^@00"). GNU extensions can be disabled with --strict.
XXX: long symlinks untested.
2002-10-16 03:46:07 +00:00
christos
ca541391bc
PR/18663: Jeremy Reed: pax/tar/cpio allows ".." in names.
...
We now disallow it by default on both archive creation and extraction.
Add --insecure option to override.
2002-10-15 16:16:29 +00:00
christos
675306eb0e
implement fast read. nothing to it really, it was already there as -q option.
2002-10-15 14:58:53 +00:00
christos
9a9c32e167
Add all the gnu cpio long options.
2002-10-15 14:51:04 +00:00
lukem
7f200231eb
fix previous: SMALLPROG w/o HOSTPROG still needs <bsd.prog.mk>. (hi christos)
2002-10-14 16:03:51 +00:00
soren
f05dd4bfd6
Sync tar_usage() with tar.1.
2002-10-14 15:04:41 +00:00
christos
7e35f7247f
don't support rmt for SMALLPROG
2002-10-14 14:41:22 +00:00
christos
8ffc5b1c59
-T expects an argument. From Eric Gillespie, thanks.
2002-10-13 17:23:40 +00:00
christos
011898cd8e
Fix error in counting the archive's name length. From Eric Gillespie, thanks!
2002-10-13 17:21:50 +00:00
christos
cd1f9fe466
If the archive refers to stdin, the archive's name is null. Check for
...
null when we see if it refers to a remote file. From Eric Gillespie, thanks!
2002-10-13 17:19:33 +00:00
mrg
a9a7ae57f7
fix "pax -rw" processing. for some reason, it was now written to process
...
"pax -rwvpe a b" as "pax -rwvpe b a", and "pax -rwvpe a b c" as
"pax -rwvpe b c a". only the part of revision 1.40 that broken this has
been reverted.
2002-10-13 11:31:02 +00:00
mrg
20bac70304
make this build on LP64
2002-10-13 00:34:16 +00:00
mrg
ed83539f6e
add a "+" to the options string rather than setting POSIXLY_CORRECT
2002-10-13 00:32:09 +00:00
mrg
9b3e4b9e61
include <string.h> for mem* and str*
2002-10-13 00:31:28 +00:00
wiz
eb12ddd1f9
Miscellaneous fixes.
2002-10-12 22:36:01 +00:00
thorpej
6fe78b30af
Only include <rmt.h> if SUPPORT_RMT.
2002-10-12 19:21:12 +00:00
thorpej
32c48247e8
It doesn't help much to skip linking librmt if HOSTPROG but leave
...
all the librmt calls in the program. So, make librmt support conditional
on #ifdef SUPPORT_RMT, and define that when NOT building as a HOSTPROG.
2002-10-12 18:49:28 +00:00
christos
0c61202168
merge OpenBSD changes:
...
- correct -C processing
- add ability to read filenames and flags from a file
- don't print dangerous escape sequences to the terminal
- use strlcpy/strncpy properly.
- handle tmpfile creation better.
- improve documentation of options.
- handle stdout/stderr list selection correctly.
- kill gzip when we get interrupted.
- simplify gzip setup.
- add more flags to programs.
additional changes:
- librmt processing.
- set POSIXLY_CORRECT in options parsing.
- prevent more string overruns.
- support -T
we don't turn the switch on to replace tar and cpio yet.
2002-10-12 15:39:29 +00:00
christos
b73dcc21ce
man pages from OpenBSD.
...
TODO: add long option documentation.
2002-10-12 15:30:54 +00:00
christos
35bdad4ed7
str{n,l}cpy fixes and buffer limit fixes from OpenBSD
2002-10-11 13:07:36 +00:00
wiz
14dfaa4b03
New policy: New sentences start on a new line.
...
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
lukem
146a774973
Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
2002-08-19 09:56:00 +00:00
wiz
0f88938132
Remove unneeded utmp.h include.
2002-08-01 18:41:34 +00:00
lukem
e0fcc669c4
Change how "cd .." is handled in next_file() with -M, to ensure that curdir[]
...
isn't addressed with a negative offset when back at the top of the tree.
This caused pax -M on sparc64 to generate corrupt tar files.
Problem found by Tim Goodwin <tjg@star.le.ac.uk> in [bin/17412].
2002-06-28 11:29:45 +00:00
wiz
46f7269fa1
End sentence with a dot.
2002-04-21 00:10:09 +00:00
lukem
94f2b78379
- Directories marked `optional' won't be stored, even though their
...
contents will be.
- Document that `optional' faked-up entries won't be created.
2002-04-20 23:36:48 +00:00
lukem
a879a977d2
If an entry is in the specfile but not in the underlying file system, and it's
...
marked "optional", don't add it.
2002-04-12 04:44:08 +00:00
wiz
9baadd8ee5
"doesn't" should have an 's'.
2002-02-11 11:19:26 +00:00
wiz
f78eb76cbe
achive is not a good word.
2002-02-11 10:57:57 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
lukem
c22ef7801b
make smaller if SMALLPROG is defined, not CRUNCHEDPROG; it's feasible
...
that a crunchgen(3)ed version of pax wants -USMALL ...
2002-02-02 12:41:14 +00:00
lukem
6ee4925cf5
- don't compile in support for -M (mtree specfile input) or -N dbdir
...
(alternate directory for id info) if SMALL is defined
- enable -DSMALL and remove unused objects if CRUNCHEDPROG is defined
- minor cleanup in next_file() (preparation for future work)
2002-02-02 12:34:39 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
47b0d14e39
Protect __RCSID and __COPYRIGHT from being invoked if not defined.
2002-01-31 19:27:53 +00:00
tv
a328e34106
Make almost all tools compile and run properly on non-NetBSD hosts. (In
...
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
lukem
1a63c49a4f
provide meaningful warning if -N is called with a dodgy dbdir
2002-01-26 02:22:54 +00:00
martin
5bb1b47a42
Do not .include <bsd.prog.mk> if building as a host tool.
2002-01-25 22:11:11 +00:00
lukem
ae5120dc49
Add '-N dbdir', to specify that user & group lookups (via pwcache(3)) are to
...
be done from dbdir/master.passwd and dbdir/group, using simple text file
parsing routines from ../../usr.sbin/mtree/getid.c.
This does not affect the -G and -U options, which always use the
system databases.
2002-01-24 07:45:33 +00:00
wiz
b4371d47f5
Replace some misuses of "then" with "than".
2001-12-04 17:56:30 +00:00
hubertf
dc9f52db45
Add a second example for copying directory trees, this time as root
...
(using -pe, which also preserves ownership).
Proof-read by Perry.
2001-11-08 00:02:10 +00:00
hubertf
ab7c58c99d
* Fix example on how to copy a tree.
...
Noted in PR 14486 by Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp>
* In the same example, add flags to preserve permissions (-pp)
2001-11-07 03:17:24 +00:00
lukem
33b90eebfd
fix WARNS=2
2001-11-03 12:49:31 +00:00
wiz
ee03b26cd0
Whitespace nits, sort sections, fix Dv usage (doesn't like macro argument).
2001-10-28 19:03:12 +00:00
lukem
9ee82d317a
s/u_longlong_t/unsigned long long/ to shut up the parc port
2001-10-28 13:06:43 +00:00
lukem
158048edab
improve previous; use %lu and (u_long) to print size_t
2001-10-26 16:03:24 +00:00
lukem
5e919e1699
Cast size_t's to (int) when printing as %d; appeases the sparc port.
...
Found by Rob Windsor in [bin/14362].
2001-10-26 15:58:43 +00:00
lukem
a7febe9ca0
minor improvements in wording and flag testing
2001-10-25 13:54:54 +00:00
lukem
55026d5454
Implement -M flag: During a write or copy operation, treat the list of
...
files on standard input as an mtree(8) `specfile' specification, and
write or copy only those items in the specfile.
If the file exists in the underlying file system, its permissions and
modification time will be used unless specifically overridden by the
specfile. An error will be raised if the type of entry in the specfile
conflicts with that of an existing file.
Otherwise, it is necessary to specify at least the following parameters
in the specfile: type, mode, gname or gid, and uname or uid, device
(in the case of block or character devices), and link (in the case of
symbolic links). If time isn't provided, the current time will be used.
2001-10-25 08:51:50 +00:00
lukem
c1bd745ccb
- ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
...
leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff similar to ftpd; provide #defines and
macros which select which cast to use, etc
- clean up the NET2_FTS and NET2_REGEX #define use
2001-10-25 05:33:32 +00:00
lukem
655fadf63c
fix typo
2001-10-24 11:28:55 +00:00
wiz
5893dbb3e5
Fix typo.
2001-10-07 16:28:39 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
wiz
2b3a9dde88
Fix typo (specifc instead of specific).
2001-09-04 21:47:31 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
lukem
f819878ce7
use more standard %ll_ in favour of %q_
2001-01-04 15:39:50 +00:00
kleink
a8e69293b0
LC_TIME holds a locale name, which isn't a strftime() format string.
2000-10-22 15:41:31 +00:00
phil
c2abf9c643
Don't generate html yet. doc2html needs a fix.
2000-09-26 16:49:22 +00:00
kleink
97f9bd4019
Elaborate a bit on -t.
2000-09-04 07:26:38 +00:00
tv
b0477f6d7e
Work around a groff bug by splitting a long .Cm into two parts.
2000-08-21 13:53:50 +00:00
thorpej
547c89117a
Implement --atime-preserve.
2000-07-04 17:28:47 +00:00
thorpej
a3a7c5ccf1
Implement --use-compress-program.
2000-07-04 17:24:47 +00:00
thorpej
4120b8a499
Add GNU tar-style long options for pax's tar front-end. Still many
...
GNU options not implemented, but there is an #if 0'd out canonical
list.
2000-07-04 17:17:49 +00:00
mrg
27f963a94f
minor KNF nits.
2000-06-17 18:19:10 +00:00
simonb
51ee9dc68d
Don't declare 'extern opt*' getopt variables.
2000-04-14 05:52:56 +00:00
thorpej
d0666190e1
Add a -O option: force one volume. This causes pax to not prompt for
...
a new volume upon premature end-of-volume (e.g. broken pipe). This is
especially useful in automated environments where error recovery cannot
be performed by a human.
2000-03-30 17:53:04 +00:00
thorpej
0317a20658
Use an in-core stack for directory permissions rather than a temporary
...
file. The temporary file code can be reenabled by building with
-DDIRS_USE_FILE.
Fixes a problem where sysinst would fail to unpack the base set because
the temporary file wouldn't fit in the ramdisk.
2000-03-21 02:15:24 +00:00
soren
1594850f00
Fix doubled 'the' in comment.
2000-03-13 22:46:59 +00:00
itohy
f8adf56da0
Cleanup and fix typos.
...
Partially from FreeBSD.
2000-02-17 03:12:22 +00:00
itohy
fae63d9627
Use lseek(2) on devices if not tape drives.
...
This makes listing on raw disk device much faster.
Reviewed and discussed in tech-kern and tech-userlevel lists.
2000-02-17 03:08:40 +00:00
itohy
ba0ae447ef
Fix SIGINFO botch (PR #8868 ).
...
Continue partial write(2) on signals (xwrite()).
Partial read(2) at a few places are also continued (xread()).
Add {read,write}_with_restart() hooks for porting on systems
which don't restart interrupted read()/write() calls.
Reviewed and discussed in tech-kern and tech-userlevel lists.
2000-02-17 03:06:12 +00:00
mycroft
8493d15a0c
Fix a glitch with handling files larger than 2GB.
2000-01-19 18:41:23 +00:00
mycroft
e9e9dbbd42
Disable -pf for now, too.
1999-11-07 15:57:31 +00:00
mycroft
5d5e10aec4
Completely disable all the chflags(2) support for now. With this enabled, I
...
can't even get a build to finish over NFS. Not acceptable.
1999-11-07 15:48:24 +00:00
mycroft
39b5cd452c
Don't try to set file flags for a symlink.
1999-11-07 09:44:11 +00:00
mrg
14c29acc41
whoops; reverse the logic of the previous to make it correct. noted by mycroft.
1999-11-01 17:13:27 +00:00
mrg
058c411cdd
add CAF testing to extraction, archiving and listing (where it is used)
1999-11-01 16:46:52 +00:00
mrg
b60cafe2fb
add a new -p subflag: 'f' to preserve 4.4BSD fileflags. this only
...
really works for `pax -rw' but that's where it is most useful.
1999-11-01 01:35:58 +00:00
is
e413a4ff50
Implement positional -C argument to tar.
1999-10-22 20:59:08 +00:00
mrg
78e294d1bc
support ././@LongLink extraction, as created by GNU tar.
1999-10-22 10:43:11 +00:00
mrg
f2cf747ebc
remove some old cruft.
1999-10-22 10:38:40 +00:00
jdolecek
4ed908a566
add SEE ALSO section, xref tar(1), cpio(1), symlink(7)
1999-09-26 21:19:54 +00:00
enami
e9de0d1bbd
Don't emphasys punctuations.
1999-09-26 09:57:31 +00:00
tron
10fa22ca89
Fix "tar" mode usage string.
1999-08-24 08:02:27 +00:00
tron
62724fe719
Recognize GnuTAR's "h" (instead of "H") and "P" options.
1999-08-24 08:00:03 +00:00
tron
1fbe6b7eae
Strip leading slashes from filenames by default, add new "A" option to
...
disable this behaviour. Patches supplied by Peter Seebach in PR bin/8233.
1999-08-24 07:57:06 +00:00
kleink
9d3e44943a
Add the ability to handle estranged V7 tar archives that use USTAR-style
...
directories; addresses PR bin/8220.
1999-08-18 17:46:28 +00:00
kleink
e97454c22b
Honor the contents of $TMPDIR for the creation of temporary files, and use
...
_PATH_TMP instead of hardcoding /tmp if not set in the environment; fixes
PR bin/7796 from Chris Demetriou.
1999-07-03 14:42:39 +00:00
pk
b65081cff2
When substituting backreferences source from the pattern, not the replacement
...
strings.
1999-03-24 17:00:23 +00:00
garbled
f124765044
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:25:43 +00:00
mycroft
fcfc497f58
Do the previous is a slightly different way, to avoid .Po/.Pc.
1999-03-07 22:40:18 +00:00
mycroft
83a97707fb
Clean up embedded angle brackets for mdoc2html.
1999-03-07 20:28:55 +00:00
mycroft
be61c999f6
Finally get all of the highlighting correct in the -T argument.
1999-03-07 19:58:45 +00:00
mycroft
f6590b22cd
Clean up SYNOPSIS formatting.
1999-03-07 11:02:05 +00:00
mycroft
7a981b1dc5
Fix formatting errors.
1999-03-07 10:48:31 +00:00
mycroft
976b71d89f
Use .Ns a bit.
1999-03-07 03:44:51 +00:00
mycroft
c35cd0d402
Improve the formatting of the SYNOPSIS section.
1999-03-07 01:07:57 +00:00
mycroft
12cb4ca205
Add -z option to usage message.
1999-03-07 01:03:32 +00:00
christos
789b715904
Add SIGINFO support.
1999-03-03 18:06:52 +00:00
kleink
b75d68301e
<sys/fcntl.h> -> <fcntl.h>
1999-02-12 15:04:00 +00:00
tron
7455a4498d
Fix opt_add() prototype.
1999-02-07 15:08:50 +00:00
tv
4aa7016df7
Fix opt_add to take const char * so that it can be passed a constant
...
string legally (it strdup()s the argument). How pax-as-tar `-o' ever
worked without a coredump is beyond me...
Also modify pax-as-tar `-o' to do three things, which depend on the
create/extract mode:
- write V7 format archives (which, though part of GNU tar, actually
goes along with the following point--after all, old pax-as-tar created
V7 archives by default);
- write archives with "write_opt=nodir", as pax already did, and as
specified by 4.2BSD;
- extract archives with owner/group set to invoking user, as specified
by SUS.
1999-02-07 00:56:55 +00:00
tv
fb3e11970f
Lost 5 lines in the version that was committed. Re-add them.
1999-02-02 23:42:41 +00:00
tv
6e7077da0a
Uh, when called as "tar" we should still default to "ustar" output, not
...
V7 tar format. Also change meaning of pax-as-tar option "-o" to mean
"use V7 output format" (same as GNU tar's -o).
1999-02-02 23:31:52 +00:00
mycroft
75e40b3781
Make this build on the Alpha.
1999-01-21 08:46:06 +00:00
mrg
ce6b187617
implement the gnutar -X flag in terms of pax -s. fix some bugs in pax -s handling while i am here...
1999-01-20 14:45:09 +00:00
christos
f07f96ffab
Fix problem compiling when NET2_STAT is defined.
1998-11-04 19:40:13 +00:00
christos
3c85b6c0b3
char -> unsigned char cast.
1998-11-04 19:38:12 +00:00
christos
7bd45f99ac
make printf formats conservative
1998-11-04 19:37:56 +00:00
mycroft
5512409373
Reconstruct a split file name correctly.
1998-10-15 00:07:34 +00:00
tv
af575980ab
Transparently handle old-style GNU tar archives that may have garbage in
...
the trailing block and do not have an end-of-archive marker. (Does this
handling based on whether the ustar id is "ustar" or "ustar ".)
1998-08-10 22:34:59 +00:00
mycroft
d0e267dc7f
Use the uid/gid caching moved into libc. Fixed a memory leak!
1998-07-28 17:44:23 +00:00
mycroft
ee9e50eacb
Be more retentive about use of NOTREACHED and noreturn.
1998-07-28 11:41:40 +00:00
mycroft
9dc385beb1
Delint.
1998-07-28 05:31:22 +00:00