summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
2009-11-13stop the options string leak if it is not attached into the optionsTheo de Raadt
linked list, found by parfait, ok jsg
2009-11-12memory leak in one more case, found by parfait; ok jsgTheo de Raadt
2009-11-12Do realloc() the paranoid way, at the very least to once again educateTheo de Raadt
people about the potential for memory leaks when realloc is use sloppily ok miod
2009-10-28Err out if either sigaction fails and not just when both do.Philip Guenthe
ok otto@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-08-05ustar format consists of prefix = 155 octets; name = 100 octetsMartynas Venckus
prefix (155) + / (1) + name (100) = 256 characters; not 255 characters ok otto@, millert@
2009-06-01Simplify newline stripping after fgets.Ray Lai
OK millert
2009-02-08updates to IEEE Std 1003.1-2008;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-12-27prevent line breaks in the middle of options.Igor Sobrado
jmc@ suggested replacing ".Op Ar file ..." with just ".Op Ar", and provided excellent feedback about where placing the .Bk/.Ek macros. ok jmc@
2008-06-11(sorry pval) some missing -j bits;Jason McIntyre
2008-06-11Add tar -j option that calls bzip2 for compress/decompress. RequiresPeter Valchev
you to install the bzip2 pkg (or add bzip2 in another way). ok millert@ otto@ deraadt@ and 'many others'@ man page tweak from jmc@
2008-05-28write cpio_usage() in a way consistent with pax_usage() and tar_usage();Igor Sobrado
wrap options around to fill out the 80 columns; spacing. tweaked by jsing@, thank you very much! ok jsing@
2008-05-17documentation tweaks.Igor Sobrado
ok (some time ago) jmc@
2008-05-06when pax is running in -u mode, and no files are beeing updated becauseHenning Brauer
not one changed, we should not exit with an error but zero to indicate success (matches solaris behaviour). need to track wether files were skipped because of the -u checks for that and take that into account later when taking the exit code decision. ok theo, comments from otto and miod
2008-01-01Typo in comment about cpio_endwr() fixed.Tobias Stoeckmann
OK otto@
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