summaryrefslogtreecommitdiff
path: root/usr.bin/compress/main.c
AgeCommit message (Expand)Author
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
2003-07-11Move magic number checking into main.c and make it work whenTodd C. Miller
2003-07-08fix fd closing logicand close in gzopen(); found by wilfried@ and millert@ okMichael Shalayeff
2003-06-30Make usage() take the exit val are an argument and have the -h flagTodd C. Miller
2003-06-29Return EINVAL on crc failure for gzip and make the driver programTodd C. Miller
2003-06-27Fix -t mode; it needs to set decomp=1 tooTodd C. Miller
2003-06-23Fix a typo in my last commit and convert file "-" to /dev/stdin likeTodd C. Miller
2003-06-23When trying to cat a non-file, say "foo not a regular file" instead ofTodd C. Miller
2003-06-22man page changes from jmc: use this as gzip tooTheo de Raadt
2003-06-22knf and ansiTheo de Raadt