summaryrefslogtreecommitdiff
path: root/bin/pax/ar_subs.c
AgeCommit message (Collapse)Author
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
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-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-01-25append without a file list should not corrupt a tar file;Markus Friedl
report Rainer Giedat; ok millert@
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-15more "if (foo);" ok millert@Damien Miller
2003-06-26protos. this requires changing the api for the *trail() functions a bitTheo 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-02-03typos;Jason McIntyre
from netbsd(svs+pr@grep.ru) suggested by deraadt@
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-16Fix comment typos; most from NetBSD and FreeBSDTodd C. Miller
2002-10-16kill registerTodd C. Miller
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd 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-16use proper str*cpy functions instead of home grown one, spaces; millert@ okMichael Shalayeff
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-09-16Do not error out on archives without theNiklas Hallqvist
customary block of zeroes at the end.
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
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-07-23tabifykstailey
1997-06-18(foo *)NULL -> NULLkstailey
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-02-27fix pr system/124, reported by Janjaap van Velthooven (janjaap@stack.nl).michaels
1997-01-24Support multiple -v options like GNU tar (> 1 -v means do ls-like output).Todd C. Miller
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-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
1995-10-18initial import of NetBSD treeTheo de Raadt