Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-07-22 | sort synopsis and options list; sync usage() (as best we can); | Jason McIntyre | |
help + ok jaredy@ | |||
2005-07-11 | Don't set timestamps created from stack garbage when compressing | Todd C. Miller | |
from stdin. Based on a patch from marc@ | |||
2005-06-26 | be a bit more carefull not writing to the stream after the timestamps | Otto Moerbeek | |
have been set. ok deraadt@ | |||
2005-04-17 | spacing | Theo de Raadt | |
2005-04-17 | use correct functions names in warn() | Hans-Joerg Hoexer | |
ok deraadt millert | |||
2005-04-14 | use f{chown,chmod,utimes,chflags} instead; done with hshoexer, ok otto mickey | Theo de Raadt | |
2005-02-24 | remove docompress() completely in case of -DSMALL and | Moritz Jodeit | |
replace it with a better error message. ok millert@ henning@ | |||
2005-02-07 | In list mode (which implies test mode), do not forget to initialize | Otto Moerbeek | |
uncompressed_name. Spotted by markus@; ok hshoexer@ millert@ | |||
2005-01-27 | Compute compression ratio using signed arithmetic, since the compressed size | Otto Moerbeek | |
might be larger than the original, yielding negative percentages. Spotted by markus@ ok henning@ hshoexer@ | |||
2004-09-20 | Make "gunzip foo.bar" work when there is a foo.bar.gz file. | Todd C. Miller | |
OK otto@ | |||
2004-07-29 | Don't set the output filename when in -t mode. Avoids an error when | Todd C. Miller | |
the input filename lacks a .gz. OK mickey@ | |||
2004-02-29 | don't stat(2) outfile in testmode; ok millert@, miod@ | Markus Friedl | |
2004-01-22 | Make exit code for "unknown suffix" and "name too long" match GNU gzip. | Todd C. Miller | |
Fixes an interaction with the perl CPAN module which checks the exit value. | |||
2003-12-16 | do not implement -L (print copyright) with SMALL | Henning Brauer | |
186 bytes more bytes we can waste elsewhere | |||
2003-12-16 | really don't do -V #ifdef SMALL | Henning Brauer | |
2003-12-16 | do not include rcsids with -DSMALL and as it is meaningless then do not | Henning Brauer | |
implement -V then. following a discussion with millert@ | |||
2003-12-16 | avoid name clash with newer libz; breaks on static archs | Henning Brauer | |
ok millert@ | |||
2003-12-09 | Fixes based on a patch from Moritz Jodeit; mickey@ OK | Todd C. Miller | |
o break out of inflate() when we hit an error o fix printf format #ifdef SMALL o add version string of nullopen.c to -V output o remove unnecessary initializations to 0 for variables cat and decomp o beautify -l output to make it line up with the heading | |||
2003-09-05 | KNF nit pointed out by theo | Henning Brauer | |
2003-09-05 | dont error out when the input file is a symlink AND output goes to stdout | Henning Brauer | |
inspired by PR3409, ckuethe@ualberta.ca, tho fixed differently matches gnu gzip behaviour ok millert@ tedu@ deraadt@ | |||
2003-09-05 | add a null compressor from canacar@ that lets gzcat work with uncompressed | Ted Unangst | |
files. also introduce SMALLness that removes null and Z compressors to save floppy space. ok deraadt@ | |||
2003-08-05 | spacing | Theo de Raadt | |
2003-07-29 | Instead of checking for "stdout" in decompress(), just do the check | Todd C. Miller | |
in list_stats(). Looks cleaner and we don't have to rely on any special flags being set. | |||
2003-07-29 | Check cat, not pipin when deciding whether or not to make use | Todd C. Miller | |
"stdout" as the filename in -l mode. Fixes "gzip -lN < foo.gz" | |||
2003-07-27 | Return FAILURE for "file would grow" case so the .gz file gets removed. | Todd C. Miller | |
Problem noticed by otto@ | |||
2003-07-25 | o deal with the case where -N was specified but no saved mtime in the gz file | Todd C. Miller | |
o a filename in the header should turn off cat mode if -N o make setmode() be smart about pipin and not set outfile based on /dev/stdin. mickey@ OK | |||
2003-07-18 | Previously, "cat" mode (ie: zcat) was set if no input file was specified, | Todd C. Miller | |
and input was read from the standard input. However, if the -o option is specified, we don't need (or want) cat mode since the user has told us where the output should go. | |||
2003-07-18 | Change "nosave" back into a boolean for improved grokability. | Todd C. Miller | |
It is now initialized to -1 and, if the user did not specify the -n or -N flags, is set equal to "decomp". In other words, unless overridden via -n/-N, it is false when compressing, and true when decompressing (which is what we want). | |||
2003-07-17 | o implement -l, -n and -N (including setting outfile + mtime) | Todd C. Miller | |
o make -v behave like GNU gzip for compress/decompress stats o write a full gzip header w/ mtime and file name o for -t/-l just don't write data instead of writing to /dev/null o exit code is now more consistent with GNU gzip o a crc error on decompress no longer causes unlink(outfile) mickey@ OK | |||
2003-07-15 | Don't compress a file that already has a known compression prefix. | Todd C. Miller | |
This matches GNU gzip behavior. | |||
2003-07-14 | Improved (and cleaner) suffix handling code. Now "gunzip foo.tgz" | Todd C. Miller | |
works as expected. mickey@ OK | |||
2003-07-14 | -t and implied -c due to piped in input is a legal combination of flags | Michael Shalayeff | |
2003-07-11 | Move magic number checking into main.c and make it work when | Todd C. Miller | |
decompressing from a pipe. Currently assumes that magic numbers are 2 bytes but this is relatively easy to change as needed in the future. Discussed w/ mickey@ | |||
2003-07-08 | fix fd closing logicand close in gzopen(); found by wilfried@ and millert@ ok | Michael Shalayeff | |
2003-06-30 | Make usage() take the exit val are an argument and have the -h flag | Todd C. Miller | |
use this to exit(0), not exit(1). Some configure/install sqcripts check for the existence of gzip by running "gzip -h" and checking the subshell's exit value. Noticed by naddy@ | |||
2003-06-29 | Return EINVAL on crc failure for gzip and make the driver program | Todd C. Miller | |
interpret this correctly. Makes "gzip -t" more useful. Discussed with deraadt@ | |||
2003-06-27 | Fix -t mode; it needs to set decomp=1 too | Todd C. Miller | |
2003-06-23 | Fix a typo in my last commit and convert file "-" to /dev/stdin like | Todd C. Miller | |
GNU gzip does. | |||
2003-06-23 | When trying to cat a non-file, say "foo not a regular file" instead of | Todd C. Miller | |
"foo not a regular file: unchanged" since we never change the file in cat mode. | |||
2003-06-22 | man page changes from jmc: use this as gzip too | Theo de Raadt | |
2003-06-22 | knf and ansi | Theo de Raadt | |
2003-06-10 | mostly ansi cleanup; pval ok | Theo de Raadt | |
2003-06-04 | 4 was deleted, should be 3 | Theo de Raadt | |
2003-04-07 | strlcpy; from Hans-Joerg.Hoexer@yerbouti.franken.de | Theo de Raadt | |
2003-01-07 | Avoid trashing an existing output file when the input cannot be read. | Todd C. Miller | |
Changes open order slightly and makes a distiction between errors < 0 and > 0. Prompted by a discussion on the freebsd-audit list. | |||
2003-01-06 | fix aproblem w/ -oct mix check and compressing /dev/stdin; millert@ ok | Michael Shalayeff | |
2002-12-17 | o Implement -r (recursive) option | Todd C. Miller | |
o add missing options to OPTSTRING o add some option mixing sanity checks o truncate existing files when uncompressing o fixed some problems with suffix handling This brings us closer to being able to replace GNU gzip; mickey@ OK | |||
2002-12-08 | grop long option names, like gzip. | Michael Shalayeff | |
add most of the gzip's options (a few unimplemented yet). some cleaning, etc. millert@ ok | |||
2002-02-16 | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | Todd C. Miller | |
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | |||
2001-11-19 | kill more registers | Mike Pechkin | |
millert@ ok |