summaryrefslogtreecommitdiff
path: root/bin/pax
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-05-28pax: don't overwrite destination if -r -w copy failslukem
Add more error handling to pax -r -w so that any failure during the copy to the temporary file (including a failed flush) prevents any existing destination file from being replaced with the partial (including possibly empty) temporary file. The partial temporary file is removed. pax still exists non-zero. Thanks to Michael van Elst (mlelstv@) for the analysis of the problem in the PR. Should fix PR misc/33753.
2023-05-28pax: exit 0 if stdin filelist is used and emptylukem
If copying a list of files from stdin, exit zero instead of non-zero if there are no files supplied. AFAICT, POSIX doesn't require a non-zero an error in this situation, since there are no files to not match. Fix from PR bin/41736 by Lloyd Parkes.
2022-05-28fix various typos, mainly in comments.andvar
2021-12-05s/exisit/exist/ in comment.msaitoh
2021-11-06pax.1: minor grammar fixesgutteridge
2020-04-03Move definition of chdname and do_chroot to options.cjoerg
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-08-15Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"uwe
PR bin/54468
2019-04-24Fix compilation failure with gcc-8.cheusov
Equal pointers to 'struct sigaction' should not be passed to sigaction(2). So, we pass NULL as an "old sigaction" structure.
2019-03-20pax: fix typos in comments in file_subs.c & tar.cgutteridge
Stamp out "greengrocers' apostrophes" in various places (arguably there are still more present, but style guides vary on that, and my energies spent corralling wayward punctuation marks could be spent elsewhere).
2019-03-20pax: minor adjustments to comments in pat_rep.cgutteridge
Amend several comments to match present reality (the functionality was added back in 2007).
2019-03-19Whitespace nits.wiz
2019-03-19pax.1 & tar.1: add a minor clarification about "-s"gutteridge
As a somewhat pedantic clarification, "-s" does not accept backslashes as delimiters. (While here, also make the macro use of an expression shared between pax.1 and tar.1 consistent.)
2019-03-19pax.1: document the "s" flag of the "s" optiongutteridge
Note the "s" option has an "s" flag that "prevents substitutions from being performed on symbolic link destinations". Carry over r. 1.25 from christos@ and part of r. 1.26 from wiz@ from tar.1, since this functionality is available in pax as well as tar.
2019-02-04- bump buffer sizes to avoid potential truncation issuesmrg
2018-11-30Add base-256 decoding support (Micha Gorny)christos
2018-06-13PR/53362: Thomas Barabosch: Use strlcpy() to prevent theoretical bufferchristos
overflow.
2018-03-19s/copy copy/copy/ in comment.msaitoh
2017-10-02Include time.h for time(2). Sort.joerg
2017-07-03Remove workaround for ancient HTML generation code.wiz
2016-08-12Document the version pax first appeared.sevan
Bump date.
2016-05-31Don't use the length return from snprintf to write out the resultdholland
buffer. If snprintf truncated the output, the length returned will be greater and we'll write trash. Just call strlen instead. (And since what we're doing is writing progress messages to the user, checking carefully for truncation isn't really worthwhile either.) Spotted when attending to PR 50998 from David Binderman; the issue there (computation of an unused value) popped up because one of the prints was already calling strlen.
2016-05-30Remove undefined behavior in buf(); use buf() as intended in intarg().dholland
While here also add includes to fix the build. Retires PR 50999 from David Binderman.
2015-12-19Remove trailing whitespace.wiz
2015-12-19Use An in AUTHORS section.wiz
2015-12-19Add the timestamp option to the pax front end.christos
2015-12-19PR/50119: Thomas Klausner: Add --timestamp option to tar.christos
2015-11-04Use An in AUTHORS section.wiz
2015-11-03By my count, [[[[[cc]yy]mm]dd]hh]mm[.ss] has seven fields, not six!pgoyette
2015-06-16remove \n from error messageschristos
2015-04-11Use An in AUTHORS section.wiz
2015-04-11Add -J/--xz to specifically decompress xz compressed files. We don't reallychristos
need this because -z autodetects the compression format; this is for syntax compatibility with other tar implementations. From Joachim Henke
2015-03-09From OpenBSD r1.49sevan
Fix comment grammar
2014-08-08Fix RCS ID.joerg
2013-11-14Stop hissing.wiz
2013-11-14add --gnu for pax.christos
2013-10-18Fixed unused warnings.christos
2013-07-29PR/48095: NAKAJIMA Yoshihiro: remove casts from time_t to longchristos
2013-01-24Recognize extended attribute headers and warn about them since we are notchristos
currently handling them.
2012-09-27deal properly with empty lines in spec filechristos
2012-08-09add missing include fileschristos
2012-08-09PR/46786: Simon Burge: After conversion to 64 bit time_t, tar/pax/cpiochristos
erroneously think that negative time_t's never fit in 32 bits. Rework conversion code to always use uintmax_t, and detect negative values. XXX[1]: Perhaps we should do the same (use a signed conversion) for all fields not just for time_t XXX[2]: pullup for 6
2012-03-22Fix whitespace nits. Suggested by Bug Hunting.wiz
2012-03-20Use C89 function definitionsmatt
2011-11-03Accept -X -christos
2011-08-31NULL does not need a castplunky
2011-08-29static + __deadjoerg
2011-08-14eliminate dup code and non literal format stringschristos
2011-06-19Use Fl Fl for long options.wiz