summaryrefslogtreecommitdiff
path: root/usr.bin/compress
AgeCommit message (Collapse)Author
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04Also needs "rpath" for some circumstances.Theo de Raadt
2015-10-03gzip can use tame "stdio wpath cpath fattr". this blocks a lot ofTheo de Raadt
system behaviours such as forking, execve, sockets, etc. in theory this extended by parsing the arguments first, and creating the whitepathlist. the pathlist probably needs to be directory-oriented, rather than exact path of files, because a gzip file may specify the filename it wants (and that won't be available until it is opened, and partially parsed). anyone want to give this a try? gzip was an early goal for capsicum. who is running a capsicum gzip?
2015-08-30Ignore setuid/setgid settings from a compress/gzip file; original CSRGTheo de Raadt
code. Found by trondd exercising coverage of tame in gzip. ok guenther millert kettenis
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-06-25Put fts_close() where missing.Masao Uebayashi
Not bugs in short-lived commands that call exit() -> _exit() immediately, but for idempotency. Originally found in ls(1) by Valgrind. Changes for other commands are from deraadt@. Reviewed by me, tested in snapshots. OK deraadt@
2015-05-03Preserve times to nanosecond precision instead of just microsecond.Philip Guenther
Prefer to set attributes by fd for regular files, and not follwing symlinks for others. ok brynet@ millert@
2015-04-09Both more and less accept options beginning with '+'.Todd C. Miller
From Tim van der Molen
2015-02-01KNF whitespace fix and handle funopen error case.Tobias Stoeckmann
ok millert
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-08userland reallocarray audit.Doug Hogan
Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@
2014-10-07no more Xr to gzsigTheo de Raadt
2014-05-08+.Xr less 1 ,Jason McIntyre
2014-05-07When you want more, you say "more". When you want less, you say "less".Vadim Zhukov
When you don't get what you asked for, you get angry. When you add a tiny bit, it should be "more" or "less" still, or you'll get angry. So lets make zmore(1) call more(1) and zless(1) call less(1), as it's supposed to be. okay and input from ingo@, no objections from author AKA millert@
2014-03-17use Ex;Jason McIntyre
2014-01-28make description of gzip(1) exit status codes more accurate.Igor Sobrado
issue pointed out by jmc@, verified by me. ok jmc@
2014-01-28make it clear that -LV are no ops; ok millertJason McIntyre
2014-01-27Remove the no-op flags -L and -V from compress(1), these optionsTodd C. Miller
come from GNU zip and they were never in compress(1) until we added gzip(1) support to it. Also remove -g flag from gzip(1) as it is non-standard and only makes sense in compress(1). Joint work with jmc@ and sobrado@. OK jmc@, sobrado@
2014-01-27remove the no-op flags -L and -V from compress(1), these optionsIgor Sobrado
come from GNU zip and they were never in compress(1) until we added gzip(1) support to it. joint work with jmc@ and millert@; millert@ will do the rest. ok jmc@, millert@
2014-01-26- document for uncompress and zcat exit status of 0 or >0 onlyJason McIntyre
- kill an unneccessary Pp that created double vertical space - mention that posix marks these apps xsi - add uncompress -V to the list of extensions - document that posix stipulates a limit of 14 for -b, even though it permits 15 and 16 ok sobrado millert
2013-12-29+.Sh EXIT STATUSJason McIntyre
2013-08-12some minor fixes; From: Jan StaryJason McIntyre
2013-04-17zlib info header is 32-bit; handle for localtime() call; ok millertTheo de Raadt
2012-09-30When outputting to stdout and compressing would grow the file, exitTodd C. Miller
normally instead of with a value of 2. Also avoids unlinking the file "stdout" in the current directory in this case. OK miod@ sthen@ henning@ beck@
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-08-21flesh out the rfc sections;Jason McIntyre
2011-09-22Remove the rcsid which were intentionally skipped in the "purge of 2009"Theo de Raadt
because the -V command printed them... gut the -V (and -L, while there) to be silent. ok miod jsg
2011-03-05Fix potential crash when GZIP variable set and more than 512 commandTodd C. Miller
line args specified. Closes PR 6573. OK deraadt@
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-07-28Truncate output file when compressing. OK deraadt@Todd C. Miller
2010-07-22document exit returns; from daniel dickmanJason McIntyre
2010-07-01if you want usenet archives from 1985, you'll have to look elsewhereTed Unangst
2010-03-27remove irrelevant man page; ok deraadtJason McIntyre
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2009-11-11memory leak with #ifdef SMALL, found by parfaitTheo de Raadt
ok jsg
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-04-18allow -V (show version) in decompression mode; ok millert@Christian Weisgerber
2009-02-10STANDARDS:Jason McIntyre
mark these utilities as being either optional (SD/FR/UP); or as being compliant only with XPG4 (XSI); strip.1 and talk.1 are tweaked purely for consistency; thanks otto for feedback
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-02-08some minor corrections for the STANDARDS section;Jason McIntyre
2008-10-08For "gunzip -N", the name stored in the gzip header has no directory,Todd C. Miller
so write the uncompressed file in the same directory we would use were the -N option not specified. Closes PR 5224
2008-08-20Use and report errors that inflate(3) can return, instead ofMarco Pfatschbacher
aborting silently, and pretending everything went alright. This lets gzip(1) (especially gzip -t) detect truncated archives and curruptions that violate the structure of the zlib format. Unquiet compress(1) in zless/zmore, so the user has a chance to see errors on corrupted archives. OK millert@, markus@
2008-08-07spacing.Igor Sobrado
2008-07-27an enum specifier is more elegant than a set of #defines;Igor Sobrado
storing the program mode variable (pmode) as a global let us have a more consistent prototype for usage(). changes suggested by pyr@. ok pyr@
2008-07-05each utility must have its own usage and an unique set of options.Igor Sobrado
diff written by millert based on a previous one by me; millert's diff has a much better style and adds support for different sets of options for each utility. ok millert@
2008-02-25For the -l flag, set testmode to 1 instead of incrementing it. FixesTodd C. Miller
a bogus error message problem when the -t and -l flags are used together. OK miod@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-05-20since less(1) and more(1) are the same point, don;t list them bothJason McIntyre
in SEE ALSO;
2007-05-20Add support for zmore being called as zless,Jonathan Gray
same behaviour but pager defaults to less instead of more. Incorporating feedback from millert@ and jmc@ ok millert@ simon@