summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
2014-04-18tweak;Jason McIntyre
2014-04-15note some unsupported features, and clean up some macros - in particular,Jason McIntyre
whack a dose of unneccessary Em; ok millert
2014-04-15flesh out STANDARDS; ok millert sobradoJason McIntyre
2014-02-19Map negative mtimes to zero instead of skipping the affected files.Philip Guenther
problem noted by miod@ ok krw@ millert@
2014-02-13Don't use use .Tn with AND/OR/NOTPhilip Guenther
Phrase any "The _flags_ argument is the ..." line consistently, eliminating unnecessary use of 'inclusive' and saying "zero or more" or "one or more" as appropriate ok millert@ jmc@ schwarze@
2014-02-06Oops, pax -x and cpio -H need to set frmtPhilip Guenther
Add 'break' accidentally removed by previous commit and future-proof format listing by cpio -H problem noted by naddy@ ok halex@ naddy@
2014-02-05make pax cope with a stripped down format list, e.g. when compiledAlexander Hall
with -DNOCPIO - ignore empty entries (millert@, halex@) - replace bsort with linear scan (guenther@) ok millert@ guenther@
2014-01-30abstraction for the sake of abstraction is distracting.Marc Espie
zap extra func pointer going to the same routines for all formats. okay millert@
2014-01-19Forget to remove the prototype for set_lids() after removing the definitionPhilip Guenther
2014-01-14No exception is made for symlinks in the spec, so usePhilip Guenther
fchmodat(AT_SYMLINK_NOFOLLOW) to set the mode on symlinks, pass AT_SYMLINK_NOFOLLOW to utimensat(), and then let those be called on symlinks by dropping the test that skipped them. Eliminate set_lids() by changing set_ids() to use fchownat(AT_SYMLINK_NOFOLLOW) and delete a redundant conditional in each of set_ftime()/fset_ftime(). suggested by espie@ ok millert@
2014-01-11Add -DNOCPIO option for use by distrib/specialTheo de Raadt
ok guenther tedu
2014-01-09Symlinks are displayed with '->', not '=>'Philip Guenther
2014-01-09Update pax -v format to match "ls -l": display the year for datesPhilip Guenther
in the future and include a space between the major and minor numbers for devices. Eliminate bogus handling of LC_TIME environment variable. Make strftime() format selection understandable by gcc -Wformat=2. ok millert@
2014-01-08Zap leading whitespaceTheo de Raadt
2014-01-08Zap trailing whitespacePhilip Guenther
2014-01-08Replace strtoq(), QUAD_MAX, and %qu with their long long equivalentPhilip Guenther
2014-01-08Eliminate poisonous LONG_OFF_T conditionalPhilip Guenther
adjective suggested by deraadt@
2014-01-08Delete a bogus extern declaration and move around a couple othersPhilip Guenther
2014-01-08Use size_t where appropriatePhilip Guenther
ok fgsch@
2014-01-08Rename arguments to avoid shadowing global variablesPhilip Guenther
ok fgsch@
2014-01-08Mark some functions as printf-like and fix a bogus format stringPhilip Guenther
ok fgsch@
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-10-08POSIX specifies that when the pax input file requests a hardlinkPhilip Guenther
to a symlinks, that it be exactly that and not a hardlink to the file pointed to by the symlink. Use linkat() to get what we want. ok deraadt@
2013-07-03cpio and ustar formats store times in octal fields that are 11 charactersPhilip Guenther
wide, so they support up to 33bits. Take advantage of the extra bits by no longer forcing them into 32bit ints before the time_t conversion. This gets us another 204 years of range once time_t changes type ok deraadt@ tedu@
2013-05-25Fix typo. From Caspar Schutijser via tech@.lum
2013-04-16Use utimensat() and futimens() instead of utimes() and futimes().Todd C. Miller
This lets us use UTIME_OMIT instead of having to lstat() the file when we want to preserve one of the times. Remove casts to long for tv_sec to prepare for upcoming time_t changes. OK deraadt@
2013-04-11The tweaks I suggested to the previous diff resulted in the typeflagPhilip Guenther
being checked after it was overwritten by the next block read in. Eliminate the argument aliasing that led to this being overlooked by passing rd_xheader() the size and typeflag directly. problem discovery and ok fgsch@
2013-04-09Add extended header support for ustar. Currently only path and linkpath areFederico G. Schwindt
handled. input from zhuk and guenther. tested by zhuk and sthen on a bulk. ok guenther.
2013-03-27Enable support for write_opt=nodir for ustar archives which helps to fixVadim Zhukov
issues with some crappy tar archive readers out there that rely on the fact that directory entries ends up with "/" when created by GNU Tar, and now I'm finishing this commit message by mentioning people who gave input and okays: deraadt@ millert@ jmc@
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2012-04-19add newline to signal error messages; Thomas PfaffTheo de Raadt
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-08-19as with other list types, column lists generally do not need a Pp/-compactJason McIntyre
construct; this also sidesteps what seems to be a problem with mandoc, in that "-column -compact" seems to mess up the formatting. thus these pages should now have their lists formatted nicely (i.e. correctly aligned and with indent applied); as a side note, the fact that headers are not properly marked up is another issue which will be addressed separately (a mandoc fix is needed, i think). i have fudged a few of these to mark up properly, since the workaround does make sense for some pages. as another side note, i haven;t fixed man7, as i need to prepare a separate diff for kristaps and ingo.
2011-05-26fix one signal race bug, and mark the others that remain much moreTheo de Raadt
specifically ok nicm
2011-01-23Remove .Ar markup from shell redirection meta-characters '<' and '>'Ingo Schwarze
because they are not argument names, but have to be used verbatim. Both jmc@ and sobrado@ agree to remove the .Ar markup, and it was Jason's idea to not use any other markup instead. "believe me, not everything in the cosmoverse requires markup" jmc@
2010-12-02a -N option for tar that uses numeric only IDs, useful for cross systemTed Unangst
tar file manipulation. with advice from guenther and jmc.
2010-11-03remove $OpenBSD$ lines that duplicate earlier onesJonathan Gray
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2010-07-22move exit returns blurb out of DIAGNOSTICS; from daniel dickmanJason McIntyre
2009-12-22- two more typo's spotted by Brad TilleyJasper Lievisse Adriaanse
2009-12-22- tyop, spotted by Brad TilleyJasper Lievisse Adriaanse
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@