summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
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
2003-10-20typos from Jared Yanovich;Jason McIntyre
2003-09-08fix pr3455 from Joerg.Sonnenberger. slightly improved fix suggested byTed Unangst
millert@. ok beck@ deraadt@ millert@
2003-08-16more errx/warnx style \n errors; tom.cosgrove@arches-consulting.comTheo de Raadt
2003-08-08use sizeof with strlcpy() when possible; it is less error prone.Todd C. Miller
From Patrick Latifi; ok avsm@ and krw@
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-07-02missing protosTheo de Raadt
2003-06-26protos. this requires changing the api for the *trail() functions a bitTheo de Raadt
2003-06-13Add a -0 flag to make pax use a NUL instead of a newline as theTodd C. Miller
pathname separator. Works in list mode as well as read/copy mode. Based on a patch from David Leonard; closes PR 3310
2003-06-04term 3 & 4 from tholo after permissionTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-29missing full stop.Jason McIntyre