Commit Graph

94 Commits

Author SHA1 Message Date
Maxim Sobolev
12397b2bad When unpacking compressed archive check exit status of the child (gzip or bzip)
and exit with error code if that status != 0.

PR:		30876
Submitted by:	Simon Gerraty <sig@juniper.net>
2002-02-07 10:38:16 +00:00
Peter Wemm
ee5f51df8f msg_out is already initialized 2001-08-13 21:55:41 +00:00
Ruslan Ermilov
8af1452cf8 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
Ruslan Ermilov
63919764c2 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
Brian Somers
7bc6d0158f Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Ruslan Ermilov
02ee7aa71f mdoc(7) police: use .Nm, remove blank line (these cause warnings in mdocNG). 2001-04-04 09:49:05 +00:00
Poul-Henning Kamp
6e2d5ad868 Add to BUGS section why tar can't dump large minors 2001-03-28 19:31:59 +00:00
Andrey A. Chernov
39cb1f2d78 Fix -I getopt form
PR:		26010
Submitted by:	Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
2001-03-23 12:39:29 +00:00
Andrey A. Chernov
2bd3c6a70d Cosmetique, use %R instead of %H:%M 2001-03-21 19:19:57 +00:00
Andrey A. Chernov
b4e3ab4a9c Don't attempt to parse %c output, use nl_langinfo instead 2001-03-21 15:13:50 +00:00
Ruslan Ermilov
1530a45dfb mdoc(7) police: Nm macro remembers its argument on the first
call, punctuation characters should be separated by whitespace.
2001-03-05 15:14:19 +00:00
Hajimu UMEMOTO
442aa310e6 Introduce $TAR_RSH to enable use of ssh as transport. 2001-02-18 17:30:29 +00:00
Bruce Evans
ec491764da Quick fix for attempts to free non-malloc()ed memory. The variables
current_file_name and current_link_name sometimes point into the
middle of malloc()ed memory and sometimes point to alloca()ed memory,
but free() is sometimes called on them.  This seems to be harmless
for the usual tar operations, but it is usually fatal for `tar -W'.
E.g., for `cd /etc; tar Wcf /tmp/foo rc', at the start of
verify_volume(), current_file_name points to alloca()ed memory, and
tar attempts to free it.
2001-02-18 01:06:13 +00:00
Ruslan Ermilov
d0353b836e mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
David E. O'Brien
29931e8454 s/rsa0/sa0/g 2001-01-01 19:50:48 +00:00
Ruslan Ermilov
b7b6d48965 mdoc(7) police: formatting fixes. 2000-12-25 09:08:44 +00:00
David E. O'Brien
d6e3a23dbc Clean up the -j/-y/--bzip entry in usage().
Add the -U and --unlink-first options which are the offical verions of our
--unlink localism.
Add support for the "TAR_OPTIONS" environmental variable.

Obtained from:	GNU tar 1.13.18
2000-12-24 10:52:23 +00:00
David E. O'Brien
3d0dea2a75 Add -j as the offical "pipe thru bzip2 compression program" option.
Make -I equivalent to -T for compatiblity with Solaris.

Obtained from:	GNU tar 1.13.18
2000-12-24 10:19:55 +00:00
David E. O'Brien
1ba16c630e Update the date of last change.
Submitted by:	ru
2000-12-22 18:56:41 +00:00
David E. O'Brien
8e676d4297 Add the -bzip and -I flags as aliases for -y for Red Hat compatibility. 2000-12-22 11:25:18 +00:00
Ruslan Ermilov
a2fd3702a3 mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:15:20 +00:00
Ruslan Ermilov
725ab6287f log 2000-11-22 09:23:54 +00:00
Ruslan Ermilov
3450dff7f1 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 12:18:54 +00:00
Ruslan Ermilov
b5c508fba3 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
Kris Kennaway
4aa5387491 Don't call fprintf() without a format string. 2000-07-12 00:59:32 +00:00
Sheldon Hearn
8c24e2aa35 Correct the usage printed for --exclude, which takes a globbing pattern
and not a file name.

PR:		19698
Reported by:	Jeff Blaine <jblaine@mitre.org>
2000-07-05 10:31:16 +00:00
Kris Kennaway
42bfb5ed40 Update device references. 2000-05-07 09:23:36 +00:00
Nik Clayton
b1ba45cfe5 Remove xrefs to obsolete ft driver.
PR:             docs/17080
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:40:18 +00:00
Archie Cobbs
2476d833fb Fix typo for the flag `--ungzip'' which should have been `--gunzip''
as is documented in the man page.  Retain the older mistaken version
of the flag for backwards compatibility in case anybody is using it.
Add $FreeBSD$ tag as cvs requires it.

PR:		gnu/7800
2000-01-24 21:38:18 +00:00
Peter Wemm
d63cfe5faf $Revision$ -> $FreeBSD$ 1999-09-06 07:33:51 +00:00
Peter Wemm
a1a4f1a0d8 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
Peter Wemm
9b7a44a60e $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
Bruce Evans
2336ecd56f Support 21-bit minor numbers. Avoid wasting a byte in their octal
representation by generating the same format as tar-1.13 (use a single
space as the terminator for 7-digit octal numbers).  This is POSIX.1
conformant (2-byte terminators are just a bug or historical wart in
old versions of gnu tar).  All devices created by `MAKEDEV all' except
rsa0.ctl can now be handled by tar(1).
1999-08-11 08:03:39 +00:00
Guy Helmer
5da819e1e5 Correct SYNOPSIS (remove args from synopsis that are actually arguments
to flags).

PR:		docs/9658
1999-05-04 18:12:49 +00:00
Peter Wemm
bb1cf6eb32 Handle byte counts for >2G archives
PR:		11389
Submitted by:	Adrian Chadd <adrian@FreeBSD.org>
1999-04-29 19:59:24 +00:00
Warner Losh
bdca080cce Use braces to avoid potentially ambiguous else clause.
main's return type is int not void.

Reviewed by: obrien and chuckr
1999-04-25 22:14:06 +00:00
David E. O'Brien
350fcdb834 Document -y/--bzip2/--bunzip2 flag. 1999-03-29 11:25:45 +00:00
David E. O'Brien
dfce77f3a9 Add new -y/--bzip2/--bunzip2 flag. With all the ports that are going to
bzip2 as the compression mechanism, this makes life easier.

Obtained from:	bzip2 website
1999-03-17 12:09:31 +00:00
David E. O'Brien
1c4add1853 I don't know why the version was bumped to 1.11.3, nothing from the real
GNU 1.11.3 got in when this change was made.  thepish's submitted fixes
unbroke --norecurse.
1999-02-28 09:11:20 +00:00
David E. O'Brien
f4f79fc1c9 Fix white-space spamming. 1999-02-08 01:32:04 +00:00
Daniel O'Callaghan
871e9ed3e4 MF22 - allow dates to 2069
Submitted by:	Arjan de Vet <Arjan.deVet@adv.iae.nl>
1999-01-13 06:31:55 +00:00
Daniel O'Callaghan
02b1a04fd5 Allow --newer and friends to handle dates beyond 1999/12/31 1999-01-12 18:43:38 +00:00
Ollivier Robert
2ecc8adb57 Change rst0 into rsa0 in the man page too. Correct the spelling of
POSIXLY_CORRECT while I'm here.

Pointed out by:	Andreas Klemm
1998-09-22 09:55:09 +00:00
Ollivier Robert
7c88491f77 The default tape device should be /dev/rsa0 for CAM. 1998-09-21 17:20:08 +00:00
Warner Losh
8521ef096a Fix fencepost error in readlink; inspired by OpenBSD 1998-09-09 17:14:17 +00:00
Joseph Koshy
766b5bc0f7 Fix typo.
PR:		7809
Submitted by:	Amakawa Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
1998-09-09 03:04:53 +00:00
Jacques Vidrine
9b6dc4d701 fixed: tar will extract file even if -C command fails
tar now exits with new exit code EX_BADDIR after a failed chdir()
in name_next(), name_match(), and name_from_list().
PR:		bin/2394
Submitted by:	Satoshi Asami <asami@freebsd.org>
1998-07-27 18:40:09 +00:00
Joseph Koshy
5ddca9040c fix description of `-C' option to match behaviour in the sources:
`-C' can be used both when creating and extracting files.  Further,
a `-C' inside the argument list causes a `chdir()' to the named
directory before the subsequent filename arguments to be interpreted.

Eg:- "tar -cf a+b.tar -C /a . -C /b ."

PR: 7221
1998-07-09 04:28:19 +00:00
Bruce Evans
2512f2fe3b Fixed printf format errors. 1998-06-30 20:14:13 +00:00
Steve Price
32c2131395 Fix a bunch of spelling errors.
PR:		6856
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-04 21:06:07 +00:00