summaryrefslogtreecommitdiff
path: root/usr.bin/compress
AgeCommit message (Collapse)Author
2003-07-20document exit valuesTodd C. Miller
2003-07-18Previously, "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-18Change "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-17two calls is less than a loop for two; millert@ okMichael Shalayeff
2003-07-17o 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-15Don't compress a file that already has a known compression prefix.Todd C. Miller
This matches GNU gzip behavior.
2003-07-14Improved (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 flagsMichael Shalayeff
2003-07-13Small tweaks from jmc@Todd C. Miller
o correct filename for stdin o fix "the the" o remove width from dash list (unused) o -compact for FILES list
2003-07-13Install zdiff.1; noted by marc@Todd C. Miller
2003-07-12Add zdiffTodd C. Miller
2003-07-11No longer need to assume -g when reading from stdin.Todd C. Miller
2003-07-11Move magic number checking into main.c and make it work whenTodd 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-10add missing includesDavid Krause
ok deraadt@ tedu@
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
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-29Return EINVAL on crc failure for gzip and make the driver programTodd C. Miller
interpret this correctly. Makes "gzip -t" more useful. Discussed with deraadt@
2003-06-27Fix bug in put_int32() on big endian cpus; deraadt@ OKTodd C. Miller
2003-06-27Fix -t mode; it needs to set decomp=1 tooTodd C. Miller
2003-06-23some cleanupsTheo de Raadt
2003-06-23- further document differences between compress and gzipJason McIntyre
- document -[1-9] mode for gzip - add relevant RFCs to SEE ALSO ok mickey@ deraadt@ millert@
2003-06-23sort .Xr's in SEE ALSO;Jason McIntyre
2003-06-23Fix a typo in my last commit and convert file "-" to /dev/stdin likeTodd C. Miller
GNU gzip does.
2003-06-23install zmoreTodd C. Miller
2003-06-23Make zmore read from stdin when no files are specified and try toTodd C. Miller
ascertain wether or not we have a tty. Also add a skeleton manual page.
2003-06-23When trying to cat a non-file, say "foo not a regular file" instead ofTodd C. Miller
"foo not a regular file: unchanged" since we never change the file in cat mode.
2003-06-23Add a simple zmore; man page and Makefile changes to be added laterTodd C. Miller
2003-06-22man page changes from jmc: use this as gzip tooTheo de Raadt
2003-06-22knf and ansiTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-044 was deleted, should be 3Theo de Raadt
2003-06-03three four killsMichael Shalayeff
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-07strlcpy; from Hans-Joerg.Hoexer@yerbouti.franken.deTheo de Raadt
2003-01-07Avoid 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-06fix aproblem w/ -oct mix check and compressing /dev/stdin; millert@ okMichael Shalayeff
2002-12-17o Implement -r (recursive) optionTodd 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-08grop long option names, like gzip.Michael Shalayeff
add most of the gzip's options (a few unimplemented yet). some cleaning, etc. millert@ ok
2002-08-12Swap args to calloc(3) so they are in the correct order; art@ ok.Aaron Campbell
2002-05-30a grammar knit; from Aidan Kehoe <kehoea@parhasard.net>Michael Shalayeff
2002-02-16Part 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-19kill more registersMike Pechkin
millert@ ok
2001-06-17mention zcatMichael Shalayeff
2000-12-12Fix call to getopt(3) -- -S takes an argument; mpech@prosoft.org.lvTodd C. Miller
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-10plug leakDavid Leonard
2000-03-05Various improvements, including a few HISTORY sections added from FreeBSD.Aaron Campbell
1999-11-18we don't install zopen.3Todd C. Miller