summaryrefslogtreecommitdiff
path: root/bin/pax/extern.h
AgeCommit message (Collapse)Author
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@
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@
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-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.
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-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-18Pull in some changes from NetBSDTodd C. Miller
o When extracting GNU tar archives, honor @LongLink long links/files o Add an option to prevent pax from prompting for the next volume upon premature end of archive.
2002-10-16sprinkle const; mostly from NetBSDTodd C. Miller
2002-10-16kill registerTodd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-17Add a safe_print() function that uses vis(3) if output is a tty.Todd C. Miller
Uses the vis C-style mode which is consistent with what GNU tar does (though GNU tar does vis(3) regardless of whether output is a tty). It may make sense to add a flag to force vis(3)ification like ls does but I have not done that here as I'm reticent to add more flags.
2001-05-26Get rid of NET2_FTS and NET2_REGEX #ifdefs since they are useless.Todd C. Miller
Change NET2_STAT into LONG_OFF_T for portability to systems with a 32bit off_t.
2001-05-16use proper str*cpy functions instead of home grown one, spaces; millert@ okMichael Shalayeff
2001-02-07Honor TMPDIR environment variable and document the fact.Todd C. Miller
2000-06-09Some minor cleanup, ok'd millert@Marc Espie
- remove zflag variable, since gzip_program is enough to know what's going on. - fix ar_gzip call to not depend on global variables. Avoid bogus act checks, avoid calling if fd == -1. - do gzip check for append as early as possible. - remove old K&R prototype when updating.
1998-09-20When invoked as tar, print verbose output to stdout, not stderr. If in list ↵Todd C. Miller
mode or in create mode where create output is to stdout print to stderr
1997-07-24Stash fd of cwd instead of using getcwd() to stash path.Todd C. Miller
This works in cases where the parent dir is not readable.
1997-06-04Fix usage of l_strncpy() (noticed by Theo) and make l_strncpy()Todd C. Miller
pad with NULL's like strncpy(3). This eliminates the need for zf_strncpy(); ocurrences of zf_strncpy() have been changed to l_strncpy().
1997-04-05Strip leading '/' of pathnames (only in tar mode). -S option turnsTodd C. Miller
this off like GNU tar.
1997-03-02More complete cpio(1) emulationThorsten Lockert
1997-02-27fix pr system/124, reported by Janjaap van Velthooven (janjaap@stack.nl).michaels
1997-01-26Support lchown().Jason Downs
1997-01-24Support multiple -v options like GNU tar (> 1 -v means do ls-like output).Todd C. Miller
1996-12-09revert to spawning compress-ing program. normally we want extracts usingTheo de Raadt
'z' to also work on .Z files, but libz does not deal with compressed data. Hacking the code to deal well with pipes has proven very hard.
1996-10-27Initial cut -C support in paxtar. Exceeds GNU tar by quite a bit.Jason Downs
General pax still seems to work ok.
1996-09-22Use zopen for compress-style compressed archivesThorsten Lockert
Use libz for gzip-style compressed archives
1996-06-23update rcsidTheo de Raadt
1996-06-11Correct compile warningsThorsten Lockert
Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD
1996-04-19from mrg; impliment -z (gzip) in pax and tar, and -Z (compress) in tarTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt