summaryrefslogtreecommitdiff
path: root/usr.bin/compress/main.c
AgeCommit message (Expand)Author
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
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-044 was deleted, should be 3Theo de Raadt
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
2003-01-06fix aproblem w/ -oct mix check and compressing /dev/stdin; millert@ okMichael Shalayeff
2002-12-17o Implement -r (recursive) optionTodd C. Miller
2002-12-08grop long option names, like gzip.Michael Shalayeff
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-11-19kill more registersMike Pechkin
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
2000-03-10plug leakDavid Leonard
1999-09-26remove unneeded changesMichael Shalayeff
1999-09-26read/write, and compressor->read/write results are signed values.Marc Espie
1998-09-10proper strncpyTheo de Raadt
1998-03-10fix coredump on pipe to uncompressMichael Shalayeff
1998-02-13Don't do chflags() if st_flags is zero. Fixes bogus error whenTodd C. Miller
1997-08-19Check length of filename.Z against PATH_MAX and NAME_MAX (POSIX 1003.2 spec)denny
1997-07-19initialization overwrites program name parsingMichael Shalayeff
1997-07-08one tiny changeMichael Shalayeff
1997-07-08restore compress to terminalMichael Shalayeff
1997-07-06fix error handlingMichael Shalayeff
1997-07-06correct program name decodingMichael Shalayeff
1997-07-06do gzipMichael Shalayeff