Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | -f - can respresent both stdin and stdout; rework the text a little | 2020-10-05 | 1 | -7/+8 | |
| | | | | | | | to make it read better; reported by roderick ok millert | ||||
* | in case we can't create intermediate directories because of permissions, | 2020-03-23 | 2 | -7/+9 | |
| | | | | | | show a less confusing track okay millert@ (with a small tweak to the error message by millert@) | ||||
* | Usually, -width Fl (which is 10n) is too wide and hence ugly. | 2020-01-16 | 3 | -9/+9 | |
| | | | | Change several instances, most of them to the usual -width Ds. | ||||
* | In cpio mode, when processing the -o switch, only set the archive format | 2019-11-15 | 1 | -2/+3 | |
| | | | | | if not already set. This makes "cpio -Hustar -o" behave the same as "cpio -o -Hustar". ok guenther@ | ||||
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 6 | -62/+62 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | mkstemp() returns -1 on failure | 2019-06-28 | 1 | -2/+2 | |
| | |||||
* | uid_from_user() and gid_from_user() return -1 when indicating error, | 2019-06-24 | 2 | -6/+6 | |
| | | | | not arbitrary values < 0. | ||||
* | Use the new libc uid_from_user() and gid_from_group() instead of | 2018-09-13 | 7 | -312/+25 | |
| | | | | the pax-specific functions in cache.c. OK guenther@ | ||||
* | Point to glob in section 7 for the actual list of special characters instead | 2018-07-23 | 2 | -8/+8 | |
| | | | | | | the C API in section 3. OK millert jmc nicm, "the right idea" deraadt | ||||
* | Convert snprintf+write into dprintf. It is simply easier to read, and | 2017-12-08 | 1 | -8/+3 | |
| | | | | | provides retry on short-write file descriptors. ok florian, previous versions seen by millert | ||||
* | Better document what the -v flag actually does and that you can | 2017-10-09 | 1 | -2/+11 | |
| | | | | specify it more than once. Adapted from a diff by and OK schwarze@ | ||||
* | Carefully add casts to silence clang sign-compare warnings. ok millert@ | 2017-09-16 | 5 | -15/+16 | |
| | |||||
* | there is no offical way to get the max value of time_t, but this one works | 2017-09-12 | 5 | -10/+12 | |
| | | | | | on any sensible posix system (in which time_t must be an integer type) ok deraadt@ millert@ | ||||
* | Backslash escapes the next character in filename patterns. | 2017-09-10 | 1 | -1/+4 | |
| | | | | ok millert@ | ||||
* | Avoid clang warning and make code better by using a signed long; | 2017-09-08 | 1 | -4/+4 | |
| | | | | with hint from millert@; ok millert@ guenther@ | ||||
* | intvar < sizeof(...) does not catch negative values since an int -> unsigned | 2017-09-06 | 1 | -5/+5 | |
| | | | | | conversion is involved. Cast the sizeof to int to get a signed compare; ok deraadt@ bluhm@ | ||||
* | buffer increase factor belongs in the nmemb field of reallocarray() | 2017-03-16 | 1 | -2/+2 | |
| | | | | ok guenther | ||||
* | switch pax to using pledge tape instead of ioctl. | 2017-03-11 | 2 | -5/+5 | |
| | | | | ok kettenis | ||||
* | Slow down the churn and continue using old pledge name "ioctl" instead | 2017-01-23 | 2 | -5/+5 | |
| | | | | of "tape" for a week or so. | ||||
* | Split pledge "ioctl" into "tape" and "bpf", and allow SIOCGIFGROUP only | 2017-01-23 | 2 | -5/+5 | |
| | | | | upon "inet". Adjust the 4 programs that care about this. | ||||
* | Nuke whitespace foolish enough to expose itself during the great | 2017-01-21 | 1 | -2/+2 | |
| | | | | "warning:" rectification. | ||||
* | Put some variable declarations under appropriate #if/#endif protection | 2016-12-26 | 2 | -2/+6 | |
| | | | | | | so gcc doesn't complain about defining but not using them. typo correction & ok jca@ | ||||
* | Fix a bug where archives smaller than 512 bytes would trigger a next volume | 2016-12-20 | 1 | -2/+5 | |
| | | | | | | prompt. From NetBSD. ok millert@, deraadt@ | ||||
* | Need <time.h> for time() and others. Pulled in by coincidence previously | 2016-08-26 | 2 | -2/+4 | |
| | | | | noted by tb@ | ||||
* | -E NONE has *never* worked; it was always -E none. It's a dubious option | 2016-08-26 | 2 | -26/+8 | |
| | | | | | value that merits a warning in the manpage and using 2 billion will get you practically the same effect, so delete the -E none support | ||||
* | options.h is only used by options.c; merge it into the .c file | 2016-08-26 | 2 | -122/+83 | |
| | | | | reduce and sort #includes | ||||
* | reduce and sort #includes | 2016-08-26 | 2 | -14/+12 | |
| | |||||
* | tables.h is only used by tables.c; merge it into the .c file | 2016-08-26 | 2 | -170/+132 | |
| | | | | <sys/time.h> is unnecessary; sort the #includes | ||||
* | <sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includes | 2016-08-26 | 1 | -6/+4 | |
| | |||||
* | sel_subs.h is only used by sel_subs.c; merge it into the .c file | 2016-08-26 | 2 | -76/+38 | |
| | | | | <sys/time.h> and <unistd.h> are unnecessary, but <time.h> is; sort #includes | ||||
* | pat_rep.h is only used by pat_rep.c; merge it into the .c file | 2016-08-26 | 2 | -56/+16 | |
| | | | | <sys/time.h>, <errno.h> and <unistd.h> are unnecessary; sort #includes | ||||
* | ftree.h is only used by ftree.c; merge it into the .c file | 2016-08-26 | 2 | -58/+19 | |
| | | | | <sys/time.h> is unnecessary; sort #includes | ||||
* | Don't need <sys/time.h> or "options.h" here | 2016-08-26 | 6 | -13/+6 | |
| | |||||
* | cache.h is only used by cache.c; merge it into the .c file | 2016-08-26 | 2 | -78/+40 | |
| | | | | | | <unistd.h> and <sys/time.h> are unneeded here ok by general acclaim | ||||
* | Replace name_{uid,gid}() with the libc routines user_from_uid() and | 2016-08-25 | 7 | -231/+29 | |
| | | | | | | group_from_gid(). Eliminate some superfluous strncpy() calls. ok millert@ | ||||
* | Make list-like output go to stderr when appending to an archive on stdout. | 2016-08-24 | 1 | -20/+9 | |
| | | | | | | Simplify the recognition of -f- and TAPE=- as meaning stdin/stdout. ok millert@ | ||||
* | Treat cpio's -t option as a modifier to -i, so they're ordering independent | 2016-08-24 | 1 | -5/+12 | |
| | | | | ok millert@ | ||||
* | Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio) | 2016-08-23 | 6 | -13/+19 | |
| | | | | | | in a separate variable ok deraadt@ | ||||
* | Only try to set the times on a directory once, at the end, to avoid | 2016-08-23 | 1 | -4/+2 | |
| | | | | | | duplication of warning messages ok krw@ | ||||
* | Add HISTORY. | 2016-08-16 | 1 | -2/+7 | |
| | | | | | From Sevan Janiyan <venture37 at geeklan dot co dot uk>. Verified using the CSRG archive CD. | ||||
* | Remove many unnecessary casts. Verified by comparing generated code on | 2016-08-14 | 6 | -132/+111 | |
| | | | | | | both ILP32 and LP64. ok millert@ | ||||
* | Replace u_quad_t with unsigned long long and replace "uqd" with "ull" in | 2016-08-14 | 5 | -60/+66 | |
| | | | | | | | function names to match. Pull some tangled assignments out of conditions and use >>= where possible. ok millert@ | ||||
* | allow creation of devices or fifo without -p (as it is already allowed with -p) | 2016-06-23 | 1 | -3/+3 | |
| | | | | | | diff from trondd at kagu-tsuchi com, enhanced by me for reordering promises ok deraadt@ | ||||
* | new style overlords say to use continue in empty loops. | 2016-06-03 | 2 | -5/+5 | |
| | | | | | this is easier to see and self documenting. ok openbsd | ||||
* | Switch from fgetln() to getline() to simplify error handling. | 2016-04-19 | 1 | -42/+41 | |
| | | | | | | | | Use syswarn() in more places which set errno and regularize the error messages. Skip empty lines in the input read for tar -T, cpio -E, and cpio stdin. based on diff from mmcc@ ok millert@ | ||||
* | Ignore trailing slashes and skip over duplicate slashes in chk_path() to | 2016-02-16 | 1 | -4/+18 | |
| | | | | | | | avoid infinite loop when creating intermediate directories Fix based on diff by Nicolas Bedos (nicolas.bedos (at) gmail.com) ok millert@ ok and tweak zhuk@, | ||||
* | To archive a 101 character absolute path in ustar format we must | 2016-02-15 | 1 | -7/+14 | |
| | | | | | | | split it on a slash other than the leading one. Fix based on patches from Peter Fokker (openbsd (at) berestijn.nl) and Peter Bisroev (peter (at) int19h.net) | ||||
* | don't declar main. from Michal Mazurek | 2016-01-01 | 1 | -2/+1 | |
| | |||||
* | More adress -> address | 2015-12-24 | 1 | -2/+2 | |
| | |||||
* | Replace "tame" by "pledge" in a comment. | 2015-12-16 | 1 | -2/+2 | |
| |