summaryrefslogtreecommitdiff
path: root/usr.bin/compress/main.c
AgeCommit message (Expand)Author
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-10-08userland reallocarray audit.Doug Hogan
2014-01-27Remove the no-op flags -L and -V from compress(1), these optionsTodd C. Miller
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
2011-09-22Remove the rcsid which were intentionally skipped in the "purge of 2009"Theo de Raadt
2011-03-05Fix potential crash when GZIP variable set and more than 512 commandTodd C. Miller
2010-07-28Truncate output file when compressing. OK deraadt@Todd C. Miller
2009-04-18allow -V (show version) in decompression mode; ok millert@Christian Weisgerber
2008-10-08For "gunzip -N", the name stored in the gzip header has no directory,Todd C. Miller
2008-07-27an enum specifier is more elegant than a set of #defines;Igor Sobrado
2008-07-05each utility must have its own usage and an unique set of options.Igor Sobrado
2008-02-25For the -l flag, set testmode to 1 instead of incrementing it. FixesTodd C. Miller
2007-04-04Rename "nosave" variable to "storename" in hopes of clarifyingTodd C. Miller
2007-04-03Fix PR 5417; gunzip should set the timestamp based on theTodd C. Miller
2007-01-18We don't want to use GZIP for compress. Only examine GZIP environmentTodd C. Miller
2006-12-01Fix two bugs: stdin is processed and the current working dir is notOtto Moerbeek
2006-03-13Remove dependence on /dev/stdin and /dev/stdoutTodd C. Miller
2005-07-22sort synopsis and options list; sync usage() (as best we can);Jason McIntyre
2005-07-11Don't set timestamps created from stack garbage when compressingTodd C. Miller
2005-06-26be a bit more carefull not writing to the stream after the timestampsOtto Moerbeek
2005-04-17spacingTheo de Raadt
2005-04-17use correct functions names in warn()Hans-Joerg Hoexer
2005-04-14use f{chown,chmod,utimes,chflags} instead; done with hshoexer, ok otto mickeyTheo de Raadt
2005-02-24remove docompress() completely in case of -DSMALL andMoritz Jodeit
2005-02-07In list mode (which implies test mode), do not forget to initializeOtto Moerbeek
2005-01-27Compute compression ratio using signed arithmetic, since the compressed sizeOtto Moerbeek
2004-09-20Make "gunzip foo.bar" work when there is a foo.bar.gz file.Todd C. Miller
2004-07-29Don't set the output filename when in -t mode. Avoids an error whenTodd C. Miller
2004-02-29don't stat(2) outfile in testmode; ok millert@, miod@Markus Friedl
2004-01-22Make exit code for "unknown suffix" and "name too long" match GNU gzip.Todd C. Miller
2003-12-16do not implement -L (print copyright) with SMALLHenning Brauer
2003-12-16really don't do -V #ifdef SMALLHenning Brauer
2003-12-16do not include rcsids with -DSMALL and as it is meaningless then do notHenning Brauer
2003-12-16avoid name clash with newer libz; breaks on static archsHenning Brauer
2003-12-09Fixes based on a patch from Moritz Jodeit; mickey@ OKTodd C. Miller
2003-09-05KNF nit pointed out by theoHenning Brauer
2003-09-05dont error out when the input file is a symlink AND output goes to stdoutHenning Brauer
2003-09-05add a null compressor from canacar@ that lets gzcat work with uncompressedTed Unangst
2003-08-05spacingTheo de Raadt
2003-07-29Instead of checking for "stdout" in decompress(), just do the checkTodd C. Miller
2003-07-29Check cat, not pipin when deciding whether or not to make useTodd C. Miller
2003-07-27Return FAILURE for "file would grow" case so the .gz file gets removed.Todd C. Miller
2003-07-25o deal with the case where -N was specified but no saved mtime in the gz fileTodd C. Miller
2003-07-18Previously, "cat" mode (ie: zcat) was set if no input file was specified,Todd C. Miller
2003-07-18Change "nosave" back into a boolean for improved grokability.Todd C. Miller
2003-07-17o implement -l, -n and -N (including setting outfile + mtime)Todd C. Miller
2003-07-15Don't compress a file that already has a known compression prefix.Todd C. Miller
2003-07-14Improved (and cleaner) suffix handling code. Now "gunzip foo.tgz"Todd C. Miller
2003-07-14-t and implied -c due to piped in input is a legal combination of flagsMichael Shalayeff