summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-04-04For verbose archive listings, use -> for symlinks, not =>,Todd C. Miller
as per POSIX. From Igor Sobrado via jmc@. OK otto@
2007-03-06clarify an example; from patrick keshishianJason McIntyre
help/ok otto
2007-02-24sort options; sync usage(); from Igor SobradoJason McIntyre
2007-02-24-F was missing a description;Jason McIntyre
2007-02-24sort options; sync usage(); from Igor SobradoJason McIntyre
2006-12-26fts_read returning NULL and errno set is an error. ok ray@Otto Moerbeek
2006-11-17Fix extracting and setting permissions for tar archives whenOtto Moerbeek
(multiple) -C options are present and/or (multiple) file selections args are used. Based on a diff in NetBSD PR 22995. Tested by ckuethe@ and jaredy@; ok jaredy@
2006-08-05Remove "with with" typos.Ray Lai
Fix by Tobias Stoeckmann <tobias at bugol dot de> in PR 5193.
2006-07-21Prevent segfault when "cpio -o" is called with no input.Ray Lai
Found and fix provided by Alf Schlichting <a dot schlichting at lemarit dot com>. OK millert@ and markus@.
2006-05-1232256 is the (posix) block size limit, not archive size limit;Jason McIntyre
from coleman kane; ok otto
2006-04-09ftree_add arg #2 expects int not pointer.Jared Yanovich
from Han Boetes <han@mijncomputer.nl> via tech@ ok moritz
2006-03-25Use correct directory in example.Ray Lai
From Alf Schlichting. OK jmc@ and otto@
2006-03-04Properly take into account that the name and prefix field in the tarOtto Moerbeek
header are not always NUL-terminated. This means there's room for 1 more byte in those field. This effectively reverts revs 1.13 and 1.14; ok jaredy@ millert@
2006-01-25append without a file list should not corrupt a tar file;Markus Friedl
report Rainer Giedat; ok millert@
2006-01-03tar and ustar formats have 8gb limit;Jason McIntyre
from peter philipp; ok otto
2005-12-17Avoid sign extend when writing time stamps; fixes "tar: Ustar headerOtto Moerbeek
field is too small for foo" error messages when writing files with negative time stamps on 64 bit archs. ok millert@ deraadt@
2005-11-15go the whole hog, and provide a list of file size limits for theJason McIntyre
various formats; move it to CAVEATS too, which seems more logical; suggested by peter philipp; help/ok otto@
2005-11-10document size limit of sv4cpio format, and suggest alternative;Jason McIntyre
slightly different fix to that proposed by peter philipp (pr #4608); help/ok otto@
2005-11-09Compute the sv4cpio "crc" (it's actualy just a checksum) as a 32bitOtto Moerbeek
number. Fixes crc computation on 64 bit archs. From Peter Philipp in PR 4606; looks right fgsch@, ok millert@
2005-08-05strip multiple leading slashes from absolute paths; ok beck@Damien Miller
2005-08-04Make pax exit unsuccessfully on errors.Marco Pfatschbacher
Patch by fgsch@ and me. Fixes PR 4310. OK fgsch@ otto@ millert@
2005-06-13Fix writing of old-style tar headers. Filenames and linknames actuallyOtto Moerbeek
are not NUL terminated if the fill the whole field. ok millert@ jaredy@
2005-06-02add -O to getopt (ok otto) and sync usageJared Yanovich
2005-06-02sort optionsJared Yanovich
2005-06-02- simplify usageJared Yanovich
- rearrange examples - layout tweaks - minor macro, punctuation, etc. fixes ok jmc
2005-05-24variety of man page fixesJared Yanovich
- add non-legacy synopsis (and sync usage) - sort options - refer to synopsis arguments consistently - rearrange examples - mdoc tweaks - mention glob patterns for -t and -x ok jmc, otto
2005-04-28Use a special crafted string copy function to copy data from ustarOtto Moerbeek
headers to the generic pax structs. ustar is "funny" since some fields are not always NUL terminated. Old-style tar headers and ustar creation remains to be done. ok millert@ beck@
2005-04-25Use the various f* functions to set owner, mode and times, insteadOtto Moerbeek
of operating on the path name. Avoids some races. ok deraadt@ cloder@ millert@
2005-04-21fix strlcpy abuse in pax - this commit turns potential overflows intoBob Beck
potential non-spec compliance - the use of these fields as strings needs to be revisited more thouroughly. ok millert@ otto@
2005-04-14add the prefix length to nlen for ustar; ok otto millertMarkus Friedl
2005-04-10Handle path names of exactly 100 chars correctly. Based on a diffOtto Moerbeek
from espie@. ok espie@ deraadt@
2004-11-29Build the table of created directories in-memory, instead of usingOtto Moerbeek
a tmp file. Makes it possible to unpack an archive without using /tmp, while memory usage is still within every reasonable limit. "love it" deraadt@ ok millert@ jaredy@
2004-10-23If a uid or gid does not fit into into the tar header, issue a warningOtto Moerbeek
and use the uid/gid of nobody. Spotted by and ok drahn@, ok millert@
2004-08-10-L and -h are synonymous; noticed by espie@Todd C. Miller
2004-06-20Do not go on if the -C option caused a failed chdir. ok millert@ henning@Niklas Hallqvist
2004-06-11Correct the code that identifies bogus regexps; Jared YanovichTodd C. Miller
2004-06-11Fix backref substitution in -s mode. Problem found and fix verifiedTodd C. Miller
by Jared Yanovich.
2004-04-16spacingTheo de Raadt
2004-03-30Add support for expanding GNU long links from NetBSD. I've had thisTodd C. Miller
in my tree for ages but didn't have a proper test case. Thanks to otto@ for providing one.
2004-03-16actually use the cache instead of throwing away memory. doh!Ted Unangst
from Rodney Ruddock ok deraadt@
2004-03-15more "if (foo);" ok millert@Damien Miller
2004-02-19filenames can have 100 chars, total pathname 255 in ustar format; not 250;Jason McIntyre
from pb@
2004-01-23`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))Jason McIntyre
discussed with todd@
2004-01-20When trying to append to a gzipped archive, print msg using errx(),Otto Moerbeek
not err(). ok millert@
2003-11-30Ignore -o/-O in non-extract mode. Earlier version OK'd by henning@Todd C. Miller
2003-11-21grammar improvements from Jared Yanovich;Jason McIntyre
2003-10-22quote args to make them expand properly;Jason McIntyre