summaryrefslogtreecommitdiff
path: root/bin/pax/file_subs.c
AgeCommit message (Expand)Author
2024-07-14Zap trailing whitespaceJeremie Courreges-Anglas
2023-11-26mark functions as static when they're unused elsewhere, makes theMarc Espie
2020-03-23in case we can't create intermediate directories because of permissions,Marc Espie
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
2016-08-26Don't need <sys/time.h> or "options.h" herePhilip Guenther
2016-08-23Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio)Philip Guenther
2016-08-23Only try to set the times on a directory once, at the end, to avoidPhilip Guenther
2016-08-14Remove many unnecessary casts. Verified by comparing generated code onPhilip Guenther
2016-02-16Ignore trailing slashes and skip over duplicate slashes in chk_path() toPhilip Guenther
2015-03-19Use struct timespec internally. This gives nanosecond precision to pax -rwPhilip Guenther
2015-03-15Using O_TRUNC with O_CREAT|O_EXCL is just confusing: fail if it exists,Philip Guenther
2015-03-09Unrevert post-unlock:Philip Guenther
2015-02-21Recent changes haven't been completely stable, so revert for the 5.7 releasePhilip Guenther
2015-02-15Fix two bugs. The first affected tar files with the sameTodd C. Miller
2015-02-12Prevent an archive from esacaping the current directory by itself:Philip Guenther
2015-02-11Take II, this time without an incorrect mode test.Philip Guenther
2015-02-05backout previous for now; issues seen with "tar: Directory vanished beforeStuart Henderson
2015-02-05For directories whose times or mode will be fixed up in the clean-up pass,Philip Guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-11-23Use PATH_MAX from <limits.h> instead of MAXPATHLEN from <sys/param.h>Philip Guenther
2014-07-14Delete pointless 'return;' at end of functionPhilip Guenther
2014-01-14No exception is made for symlinks in the spec, so usePhilip Guenther
2013-10-08POSIX specifies that when the pax input file requests a hardlinkPhilip Guenther
2013-04-16Use utimensat() and futimens() instead of utimes() and futimes().Todd C. Miller
2009-12-22- tyop, spotted by Brad TilleyJasper Lievisse Adriaanse
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2005-11-09Compute the sv4cpio "crc" (it's actualy just a checksum) as a 32bitOtto Moerbeek
2005-04-25Use the various f* functions to set owner, mode and times, insteadOtto Moerbeek
2004-11-29Build the table of created directories in-memory, instead of usingOtto Moerbeek
2004-04-16spacingTheo de Raadt
2004-03-30Add support for expanding GNU long links from NetBSD. I've had thisTodd C. Miller
2003-10-20typos from Jared Yanovich;Jason McIntyre
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-02-03typos;Jason McIntyre
2002-10-18Pull in some changes from NetBSDTodd C. Miller
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
2001-10-25Make -h and -L follow symlinks on extraction of directories.Niklas Hallqvist
2001-05-16use proper str*cpy functions instead of home grown one, spaces; millert@ okMichael Shalayeff
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-06-06geteuid(2) can never fail. What was I thinking?Todd C. Miller
1997-06-06POSIX says pax must complain about not being able to set permissionsTodd C. Miller
1997-06-04Don't complain about not being able to set uid/gid in "tar -p"Todd C. Miller
1997-04-09the theTheo de Raadt