Commit Graph

65 Commits

Author SHA1 Message Date
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
Bruce Evans
6b40d3ae8b Don't add y.tab.h to CLEANFILES, since this would now be done centrally
if y.tab.h were generated.  Don't generate y.tab.h, since it is not used.
1998-05-04 18:13:54 +00:00
Philippe Charnier
54425adcfb .Use .An. 1998-04-01 06:26:40 +00:00
Steve Price
98add50f23 The ' character is treated differently as the first character of a line.
PR:		5754
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1998-02-15 17:03:58 +00:00
Daniel O'Callaghan
ed158e7e93 Submitted by: Alex Nash
Style nit - extraneous space.
1998-02-04 07:04:44 +00:00
Daniel O'Callaghan
09a3feaf70 PR: gnu/4385
Submitted by:	Robert Eckardt <roberte@MEP.Ruhr-Uni-Bochum.de>
Sundry man page fixes; handle Central European Summer Time (CEST);
usage fixes in line with man page fixes.
1998-01-05 11:32:39 +00:00
Daniel O'Callaghan
52ebfb9d0f Submitted by: Peter Hawkins <peter@clari.net.au>
Actually implement --norecurse as documented in the man page.
1997-12-30 10:23:09 +00:00
Paul Traina
72b4ef7179 NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
Steve Price
d0dff61cfb Fix a minor nit in the .Dd macro invocation so that
the revision date is displayed correctly.
1997-06-23 04:52:13 +00:00
Masafumi Max NAKANE
88e57b4a69 Typo fix in the EXAMPLES section. 1997-06-05 23:12:13 +00:00
Joerg Wunsch
a08b0cc730 Don't create anything on the disk if -O (aka --to-stdout) was given.
PR:		gnu/3247: tar -O creates directories...
1997-04-13 08:39:38 +00:00
Peter Wemm
fce15c9ab3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Satoshi Asami
f654421bef Typo, "%d" -> "%s". This caused tar to print things like
tar: Can't change to directory 282656 : No such file or directory
1997-01-07 10:43:40 +00:00
Jordan K. Hubbard
13ea765008 Gnu tar has problems creating an archive which contains a file with a hard
link to another file which has a long (>=100 char) name.  When listing such
an archive, the name of the link is truncated to 99 characters, and when
extracting such an archive, an error is reported because it is trying to
create a hard link to a file which doesn't exist.  This patch fixes that
problem and has also been sent to the GNU maintainers.

Closes PR#1992

Submitted-By: David Dawes <dawes@landfill.physics.usyd.edu.au>
1996-11-12 18:15:42 +00:00
Joerg Wunsch
07404e964a Print out permissions that could not be re-established using 0%o
instead of decimal.  Also, don't use the `l' modifier for something
that has just been cast to `int' anyway.

Remove various bogus pathnames to look up rsh(1) at.  Our rsh is in
/usr/bin, but never in /usr/usb, nor would it ever be called remsh...
Also, if it hasn't been found there, use execlp() to look it up.  the
latter is required for `weird' environments like a fixit floppy where
the regular /usr/bin hiearrchy is not avaiable.  tar should probably
do it similar to dump/restore, and use rcmd(3) instead of forking an
external process.
1996-11-03 14:47:52 +00:00
Andrey A. Chernov
728b07018e Remove local fnmatch() copy, we now compatible with GNU fnmatch 1996-10-23 16:53:26 +00:00
Andrey A. Chernov
b32992bc3f Replace GNU-made __P definition by standard from sys/cdefs.h 1996-09-20 14:33:48 +00:00
Andrey A. Chernov
f1eecc5283 8bit clean ctype fixes 1996-08-15 22:55:53 +00:00
Andrey A. Chernov
280117ea07 Localization fixes 1996-08-15 22:49:46 +00:00
Chuck Robey
a194eef2f8 Change in man page to document "-" flag as stdin/stdout, add
example showing how to move file hierarchies.
Reviewed by:	jkh
1996-08-13 00:13:49 +00:00
Jean-Marc Zucconi
bf0b336a03 Spelling fixes.
This is the man page which has been obtained from NetBSD, not the program.
1996-02-09 21:14:26 +00:00
Peter Wemm
6065a0be11 This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Peter Wemm
a5b996a7ec recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
Andrey A. Chernov
ddfbe6be8d Add setlocale LC_ALL 1995-10-26 10:59:43 +00:00
Torsten Blum
cef6c97a61 Fix a typo ("-It Fl" to ".It Fl")
document the "-P" switch

Obtained from: the NetBSD bugs mailinglist
1995-10-25 02:17:44 +00:00
Bruce Evans
178d6c8706 Remove includes of the wrong ../Makefile.inc (one was commented out, the
other was in the wrong order).
1995-10-22 18:28:10 +00:00
Andrey A. Chernov
6de8ce1a74 Replace ctime by strftime %c to use national representation 1995-08-08 03:07:15 +00:00
Bruce Evans
d1e00e9390 Improve the handling of large minor numbers:
cpio/copyout.c:
Don't output a file if the major, minor or totality of its rdev would be
truncated.  Print a message about the skipped files to stderr but don't
report the error in the exit status.  cpio's abysmal error handling doesn't
allow continuing after an error, and the rdev checks had to be misplaced
to avoid the problem of returning an error code from routines that return
void.

pax/pax.h:
Use the system macros for major(), minor() and makedev().

pax already checks _all_ output conversions for overflow.  This has the
undesirable effect that failure to convert relatively useless fields
such as st_dev for regular files causes files not to be output.  pax
doesn't report exactly which fields couldn't be converted.

tar/create.c:
Don't output a file if the major or minor its rdev would be truncated.
Print a message about the skipped files to stderr and report the error
in the exit status.

tar/tar.c:
For not immediately fatal errors, exit with status 1, not the error count
(mod 256).

All:
Minor numbers are limited to 21 bits in pax's ustar format and to 18
bits in archives created by gnu tar (gnu tar wastes 3 bits for padding).
pax's and cpio's ustar format is incompatible with gnu tar's ustar
format for other reasons (see cpio/README).
1995-06-26 06:24:48 +00:00
Rodney W. Grimes
4399be3cbd Remove trailing whitespace. 1995-05-30 05:05:38 +00:00