summaryrefslogtreecommitdiffstats
path: root/bin/pax
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+4
|
* Initialize listf at main()peter2001-08-131-1/+2
|
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-7/+6
|
* Remove whitespace at EOL.dd2001-07-151-39/+39
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+6
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-2/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+2
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* Minor comment fiximp2001-05-301-1/+1
|
* mdoc(7) police: fix markup, rename and reorder some sections.ru2001-05-082-78/+104
|
* mdoc(7) police: sort xrefs.ru2001-05-081-2/+2
|
* Sync up with OpenBSD. Too many changes to note, but the major featureskris2001-05-0821-209/+1562
| | | | | | | | | | | | | | are: * Implement cpio compatibility mode when pax is invoked as cpio * Extend tar compatibility mode to cover many of the GNU tar single-letter options (bzip2 mode, aka -y/-j is not present in OpenBSD). When invoked as tar, pax is now full-featured enough for use by the ports collection to extract distfiles and create packages. * Many bug fixes to the operation of pax and the tar compatibility modes * Code fixes for things like correct string buffer termination. I tried to preserve existing FreeBSD fixes to this utility; please let me know if I have inadvertently spammed something.
* Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzipkris2001-05-055-13/+107
| | | | | | | | | | | | | | and compress) to pax when used in tar mode (invoked as 'tar') for compatibility with GNU tar. bzip2 functionality for further GNU tar compatibility will be added at a later date. Note in the manpage that -z is non-standard. Obtained from: OpenBSD Reviewed by: -hackers MFC after: 2 weeks
* Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.kris2001-04-2610-80/+82
|
* Reduce diffs with OpenBSD:kris2001-04-2617-466/+468
| | | | | | | | | | | | | | | | #if __STDC__ -> #ifdef __STDC__ pax_warn() -> paxwarn() sys_warn() -> syswarn() (foo *)NULL -> NULL bcopy -> memmove()/memcpy() bzero -> memset() Typo fixes sprintf() -> snprintf() rindex() -> strrchr() index() -> strchr() sys_errlist[] -> strerror() Obtained from: OpenBSD
* Use mkstemp() for secure tempfile creation instead of tempnam()kris2001-04-264-17/+39
| | | | | Obtained from: OpenBSD Reviewed by: mikeh
* -Wnon-const-format sweep: make format strings const char *'s, addkris2001-04-172-9/+9
| | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit
* Use nl_langinfo instead of %Efache2001-03-211-6/+16
|
* POSIX wrote:ru2001-03-023-30/+11
| | | | | | | | | | | | | : LC_TIME This variable shall determine the format and : contents of date and time strings when the -v : option is specified. Developers took this wrong. LC_TIME specifies the locale name, not the ``format'' argument of strftime(). Oops: pax -w -f /tmp/foo /dev/null LC_TIME=de_DE.ISO_8859-1 pax -v -f /tmp/foo
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-131-2/+2
|
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-5/+5
|
* Prepare for mdoc(7)NG.ru2000-12-181-24/+24
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-5/+5
|
* Don't explicitly declare optarg and optind. These are declared inimp2000-08-161-2/+0
| | | | unistd.h, which is already included.
* Use %Efache2000-06-221-2/+2
|
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* $Id$ -> $FreeBSD$peter1999-08-2727-27/+27
|
* Various spelling/formatting changes.kris1999-05-0818-71/+71
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Rev 1.13 fixes PR bin/8958obrien1998-12-061-1/+1
|
* There is a bug in /bin/pax -s option processing. The code assumes that allobrien1998-12-051-2/+2
| | | | | | | | | | | | | pattern matches will occur at offset zero of the source string. The bug causes the input source string pointer to be incremented by the offset of the end of the match, instead of it's length. The fix is to only increment the pointer by the length of the pattern match (eo-so). Of course, the one example in the man page shows a situation where the match occurs at offset 0. Submitted by: John W. DeBoskey <jwd@unx.sas.com> Obtained from: freebsd-current@freebsd.org
* - Fix off-by-one problem in tar where filenames of length 100msmith1998-10-201-7/+6
| | | | | | | and dirnames of length 99 don't archive. Submitted by: Wilfredo Sanchez <wsanchez@apple.com> Obtained from: OpenBSD
* Make sure we pass the length - 1 to readlink, since it adds its ownimp1998-06-091-3/+3
| | | | | NUL at the end of the path. Inspired by: OpenBSD's changes in this area by theo de raadt
* Clarify the example a bit.steve1998-05-311-6/+6
| | | | | PR: 6801 Reviewed by: David Kelly <dkelly@hiwaay.net>
* Correct use of .Nm. Add rcsid.charnier1998-05-1516-77/+107
|
* .Sh AUTHOR -> .Sh AUTHORScharnier1998-03-191-3/+4
| | | | Use .An/.Aq
* Make code slightly more robust towards change by calculating sizeeivind1997-12-121-2/+2
| | | | | | in-place. Obtained from: OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.eivind1997-12-1015-44/+21
| | | | | Reorder includes to be alphabetical some places since I already was in here.
* Dont have an internal function named "warn" it clashes with libc..sos1997-08-2915-247/+247
| | | | Needed for ELF.
* Off by 1 adjustment. Properly NUL terminate after strncpy.charnier1997-06-023-7/+11
| | | | Obtained from: {Net|Open}BSD
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-2227-27/+27
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1427-27/+27
| | | | | | | | 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.
* -Wall cleaning.steve1996-12-1415-34/+35
|
* Pick collate info for RE character rangesache1996-08-111-2/+2
|
* Remove unneded ctype.h everywhereache1995-10-2315-29/+17
| | | | Add setlocale LC_TIME
* Fix possible FS corruption caused by extra parameter to pax.nate1995-08-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | oo Turns out, it's pretty important if you use PAX for backup. In the man page for PAX, there is an error (OK, we could call it a "potentially catastrophic incompleteness"). It reads: > The command: > > pax -r -v -f filename > > gives the verbose table of contents for an archive stored in filename. Yup, it does do that. With a side effect: it also _replaces_ all the files that come in from the archive. As is my custom, I did my backup-validation real soon after the backup was written. Precisely because I've seen the same sort of thing happen on other systems. So all that file-restoring didn't do a lot of damage. Probably helped my fragmentation somewhat (aha, an online defragger?) It did confuse one hapless user, who lost an email message he _knew_ he hadn't deleted. Apparently the system restored the file as of just before that critical message came in. The correct entry should read: > The command: > > pax -v -f filename > > gives the verbose table of contents for an archive stored in filename. Submitted by: John Beckett <jbeckett@southern.edu> via the BSDI mailing list
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-3/+2
| | | | which is no longer bogusly installed in /usr/include.
* Improve the handling of large minor numbers:bde1995-06-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
OpenPOWER on IntegriCloud