summaryrefslogtreecommitdiff
path: root/usr.bin/compress
AgeCommit message (Collapse)Author
2007-01-31Document $GZIP environment variable.Ray Lai
OK jmc@ and millert@.
2007-01-24split compress(1) into compress(1) and gzip(1), as suggested by millert;Jason McIntyre
ok/help millert otto
2007-01-18We don't want to use GZIP for compress. Only examine GZIP environmentTodd C. Miller
variable when invoked as gzip, gunzip, gzcat, etc. OK otto@
2006-12-01Fix two bugs: stdin is processed and the current working dir is notOtto Moerbeek
readable and having a file named '-'. PR 5301 and 5302. Diff from Vadim Vygonets, with some changes from me. ok millert@
2006-05-26remove references to CRTs where they no longer make sense;Jason McIntyre
tweaked by mickey/krw ok deraadt
2006-03-13Remove dependence on /dev/stdin and /dev/stdoutTodd C. Miller
Deal correctly with compressing both stdin and regular files OK jaredy@ deraadt@
2005-09-30Ensure we do not compress files we need for decompressing by alsoOtto Moerbeek
checking hard links. From Andrew Dalgleish. ok deraadt@
2005-08-25Prevent zs_stackp from going past the end of zs_htab. May happenTodd C. Miller
for corrupted files. Based on a diff from miod@; OK mickey@
2005-07-22- sort options and sync usage()Jason McIntyre
- reword CAVEATS whilst here
2005-07-22somehow we managed to document the exit status of these apps twice,Jason McIntyre
in slightly different ways: merge it all into one bit; RETURN VALUES section header removed since strictly speaking this is not for section one apps; help from otto@
2005-07-22- make synopsis agree with DESCRIPTIONJason McIntyre
- tidy up CAVEATS
2005-07-22add -g to gzcat synopsis: although it's not necessary, it matches howJason McIntyre
we describe gzip itself; update the description of -g to reflect this;
2005-07-22add some z* utils to SEE ALSO;Jason McIntyre
formatting tweak;
2005-07-22add zcat and gzcat to NAME;Jason McIntyre
2005-07-22sort synopsis and options list; sync usage() (as best we can);Jason McIntyre
help + ok jaredy@
2005-07-11Don't set timestamps created from stack garbage when compressingTodd C. Miller
from stdin. Based on a patch from marc@
2005-06-26be a bit more carefull not writing to the stream after the timestampsOtto Moerbeek
have been set. ok deraadt@
2005-04-17spacingTheo de Raadt
2005-04-17use correct functions names in warn()Hans-Joerg Hoexer
ok deraadt millert
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
replace it with a better error message. ok millert@ henning@
2005-02-07In list mode (which implies test mode), do not forget to initializeOtto Moerbeek
uncompressed_name. Spotted by markus@; ok hshoexer@ millert@
2005-01-27Compute compression ratio using signed arithmetic, since the compressed sizeOtto Moerbeek
might be larger than the original, yielding negative percentages. Spotted by markus@ ok henning@ hshoexer@
2004-09-20Make "gunzip foo.bar" work when there is a foo.bar.gz file.Todd C. Miller
OK otto@
2004-09-06set the xflags; form netbsd; millert@ deraadt@ otto@ okMichael Shalayeff
2004-07-29Don't set the output filename when in -t mode. Avoids an error whenTodd C. Miller
the input filename lacks a .gz. OK mickey@
2004-02-29don't stat(2) outfile in testmode; ok millert@, miod@Markus Friedl
2004-02-23knfTheo de Raadt
2004-01-22Make 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.
2004-01-22Remove 3 unused variables.Todd C. Miller
2003-12-28fixes from wiz@netbsd;Jason McIntyre
2003-12-28various doc fixes from wiz@netbsd;Jason McIntyre
2003-12-16do not implement -L (print copyright) with SMALLHenning Brauer
186 bytes more bytes we can waste elsewhere
2003-12-16really don't implement unzip #ifdef SMALLHenning Brauer
this was in the tested diffs but slipped through when committing unfortunately, sorry
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
implement -V then. following a discussion with millert@
2003-12-16when we read the original file size from the gzp header in uncompress modeHenning Brauer
and compare it to total_out to detect I/O errors we need to cast total_out to u_int32_t as the gzip header file is limited to that and total_out is now 64 bits. ok millert@
2003-12-16avoid name clash with newer libz; breaks on static archsHenning Brauer
ok millert@
2003-12-09Fixes based on a patch from Moritz Jodeit; mickey@ OKTodd 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-11-21Simplified support for concatenated files; similar to what zlib does.Todd C. Miller
mickey@ OK
2003-11-14Add support for inflating multiple concatenated file like GNU gzip does.Todd C. Miller
Problem noticed by lebel@, OK mickey@
2003-10-01.Xr compress 3 and a typo;Jason McIntyre
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
inspired by PR3409, ckuethe@ualberta.ca, tho fixed differently matches gnu gzip behaviour ok millert@ tedu@ deraadt@
2003-09-05- add gzcat to SYNOPSIS and DESCRIPTIONJason McIntyre
- add -g flag to zcat in SYNOPSIS - .Nm cat -> .Xr cat 1 from myself and tedu@
2003-09-05we kind of need this new file from canacarTheo de Raadt
2003-09-05add a null compressor from canacar@ that lets gzcat work with uncompressedTed Unangst
files. also introduce SMALLness that removes null and Z compressors to save floppy space. ok deraadt@
2003-08-16Update HISTORY section. Full gzip compat was added in 3.4 and theTodd C. Miller
'g' stands for gratis.
2003-08-06typo;Jason McIntyre
2003-08-05spacingTheo de Raadt