summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
2001-12-21Initial patch for a new mdoc issue.Mike Pechkin
Powered by @mantoya: o) kill extra line in the end of file; o) kill extra space in the end of line; o) replace blank lines with .Pp; millert@ ok
2001-12-19When writing tar and ustar archives, zero out the header before weTodd C. Miller
do anything else to it. This lets us restore the strlcpy() calls and remove a buch of memset()s that were zeroing out individual fields of the header.
2001-12-19More strlcpy() backout. Various tar programs require ustar headerTodd C. Miller
elements to be zero padded too.
2001-12-19Back out a strncpy -> strlcpy conversion. When writing old styleTodd C. Miller
tar files we need to zero-pad the file name or many tars will get a directory checksum error trying to unpack the archive. This does not affect ustar archives (pax's default) though whether or not padding matters there still needs to be determined.
2001-11-05mark a zone of signal racesTheo de Raadt
2001-10-25Make -h and -L follow symlinks on extraction of directories.Niklas Hallqvist
This means that existing symbolic links won't get overwritten with a directory, but instead the directory is created/updated with the privs from the archive at the end of the symlink chain. Great for unpacking OpenBSD release tarballs, where you have linked away stuff due to lack of space on a certain partition etc.
2001-10-06s/standrad/standard/Niklas Hallqvist
2001-09-19occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok p.s. Next commit will fix a typo in the sys/
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
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-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-07-04Eat backslashes in regex's so things like:Todd C. Miller
-s '/\/bin\/cat/\/bin\/dog/' work. This means we have to be a bit more clever in finding the pattern delimeters (ie: not strchr).
2001-07-04Fix -s option, which never worked. We need to pass in the input stringTodd C. Miller
to resub() so we can copy the non-matching portion of the string to the destination. Closes PR #1889
2001-06-26really use strlcpy.lebel
2001-06-26use strlcpy vs strncpy+a[len-1]='\0'lebel
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-19Use an explicit memcpy() to copy a stat struct. Fixes a mysteriousTodd C. Miller
Memory fault on my hp300 boxes. This is more than a little worrisome (and it doesn't show up on i386). The problem may actually be related to struct alignment and the recent fts struct changes.
2001-05-16use proper str*cpy functions instead of home grown one, spaces; millert@ okMichael Shalayeff
2001-05-11add rcs tagsMichael Shalayeff
2001-05-01Remove completely redundant introductory sentences in ENVIRONMENT sections.Aaron Campbell
2001-02-12don't use long usernames by default; ok deraadt@Dan Harnett
2001-02-10Replace -T flag with more standard -I flag and make it work as a standardTodd C. Miller
argument (and thus work as in the 'packed' option form) as well as a positional argument. Our -T flag was basically equivalent to -I but different from gnutar's -T so -T gets thrown out.
2001-02-09another typoTodd C. Miller
2001-02-09no need to revert a change that just fixed a typoTodd C. Miller
2001-02-09Revert broken fix, until a correct fix is written.Marc Espie
Breaking all ports like that is not acceptable.
2001-02-07Fix -T option and add support for -C option in the file pointed toTodd C. Miller
by -T ala GNU tar. Based on a patch from woods@proven.weird.com; Closes PR #1664
2001-02-07Honor TMPDIR environment variable and document the fact.Todd C. Miller
2001-02-05improve usageTheo de Raadt
2001-02-05fix SYNOPSIS line; extra -Theo de Raadt
2001-01-04spellingTodd T. Fries
2000-11-10Use .Nm instead of spelling out "cpio".Aaron Campbell
2000-11-09- Some section shuffling: conform to the standard order documented in mdoc(7)Aaron Campbell
- .Sh AUTHOR -> .Sh AUTHORS
2000-11-09Insert some missing commas.Aaron Campbell
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-11-09typo, inspired by deraadt@Niels Provos
2000-11-08- Get rid of ".Sh OPTIONS" and always use the standard options list intro.Aaron Campbell
- Move some BUGS/CAVEATS to the end of the man pages where they should go. - Correct some .Nm usage.
2000-10-18remention -TEric Jackson
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayAaron Campbell
existing EXAMPLES sections.
2000-10-07remove non-existant T optionEric Jackson
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.
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-17Remove hard sentence breaks.Aaron Campbell
2000-03-14Suffix "i.e." and "e.g." with a comma. Just another really picky man pageAaron Campbell
commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
2000-03-05Finish standardizing options list introduction.Aaron Campbell
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be ↵Theo de Raadt
done later.. contact me if you want to help)
2000-01-21Work with files larger than 2 Gb; from NetBSD change by mycroft@netbsd.orgThorsten Lockert
1999-08-16more precise SYNOPSIS syntaxAaron Campbell
1999-08-09if verbose, fflush() appropriately before printing warnings to stderrPaul Janzen
1999-08-04Kill gzip subprocess correctly instead of letting it get a SIGPIPE whenMarc Espie
using pax -n to list/extract.