Commit Graph

97 Commits

Author SHA1 Message Date
peter
078dac26a9 Bandaid for LP64 machines where 'warning: cast to pointer from different
sized integer' bites.  The various malloc functions return pointers,
but without any prototype/declarations visible to callers, the compiler
expects them to return int.
2002-04-07 01:44:24 +00:00
sobomax
53e0d06e7b 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
92a0f962f0 msg_out is already initialized 2001-08-13 21:55:41 +00:00
ru
95ce4d2cdc Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
ru
d19961ab7f mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
brian
8636b161b3 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
ru
baf1e69c50 mdoc(7) police: use .Nm, remove blank line (these cause warnings in mdocNG). 2001-04-04 09:49:05 +00:00
phk
675a95706d Add to BUGS section why tar can't dump large minors 2001-03-28 19:31:59 +00:00
ache
c6256cf4e1 Fix -I getopt form
PR:		26010
Submitted by:	Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
2001-03-23 12:39:29 +00:00
ache
7069cc87cc Cosmetique, use %R instead of %H:%M 2001-03-21 19:19:57 +00:00
ache
2a47a89919 Don't attempt to parse %c output, use nl_langinfo instead 2001-03-21 15:13:50 +00:00
ru
173502e075 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
ume
3b9f9179f5 Introduce $TAR_RSH to enable use of ssh as transport. 2001-02-18 17:30:29 +00:00
bde
11a6354f43 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
ru
8a6f8b5fe4 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
obrien
070f48d14f s/rsa0/sa0/g 2001-01-01 19:50:48 +00:00
ru
86f19c12df mdoc(7) police: formatting fixes. 2000-12-25 09:08:44 +00:00
obrien
f57db1fdc0 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
obrien
8857c9af4a 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
obrien
b0fcdfbd76 Update the date of last change.
Submitted by:	ru
2000-12-22 18:56:41 +00:00
obrien
48d425011e Add the -bzip and -I flags as aliases for -y for Red Hat compatibility. 2000-12-22 11:25:18 +00:00
ru
278161ed6c mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:15:20 +00:00
ru
1a6c69e84a log 2000-11-22 09:23:54 +00:00
ru
ca1ff254a5 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 12:18:54 +00:00
ru
7d99729431 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
kris
1b91829585 Don't call fprintf() without a format string. 2000-07-12 00:59:32 +00:00
sheldonh
2b34dd0bea 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
390c965a23 Update device references. 2000-05-07 09:23:36 +00:00
nik
fc60a09c33 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
ee5114590e 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
f7fdcd93d4 $Revision$ -> $FreeBSD$ 1999-09-06 07:33:51 +00:00
peter
c81dbb3c98 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
peter
289c0d262f $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
bde
d3695c1d03 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
ghelmer
1d4a1667d4 Correct SYNOPSIS (remove args from synopsis that are actually arguments
to flags).

PR:		docs/9658
1999-05-04 18:12:49 +00:00
peter
7634f5f76b Handle byte counts for >2G archives
PR:		11389
Submitted by:	Adrian Chadd <adrian@FreeBSD.org>
1999-04-29 19:59:24 +00:00
imp
35d2979599 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
obrien
917c0ee769 Document -y/--bzip2/--bunzip2 flag. 1999-03-29 11:25:45 +00:00
obrien
4be2884249 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
obrien
10973fdbbf 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
obrien
63e9231cca Fix white-space spamming. 1999-02-08 01:32:04 +00:00
danny
7570a5c9f7 MF22 - allow dates to 2069
Submitted by:	Arjan de Vet <Arjan.deVet@adv.iae.nl>
1999-01-13 06:31:55 +00:00
danny
a602dc10e4 Allow --newer and friends to handle dates beyond 1999/12/31 1999-01-12 18:43:38 +00:00
roberto
fdfec00b09 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
roberto
9d8fc55b2c The default tape device should be /dev/rsa0 for CAM. 1998-09-21 17:20:08 +00:00
imp
640d2c783a Fix fencepost error in readlink; inspired by OpenBSD 1998-09-09 17:14:17 +00:00
jkoshy
51ced80ab7 Fix typo.
PR:		7809
Submitted by:	Amakawa Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
1998-09-09 03:04:53 +00:00
nectar
084c8c6627 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
jkoshy
55e824de37 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
bde
53d1b984ce Fixed printf format errors. 1998-06-30 20:14:13 +00:00