diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1998-10-20 06:13:57 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1998-10-20 06:13:57 +0000 |
| commit | 7c0704e4465ea51cf10d97b4bbec6bad3e57d8af (patch) | |
| tree | 3e6c729056d80c5b52d1aae50494ccad8f36d839 /usr.bin/compress | |
| parent | 4757e526860c0e462191f3aee9a5da504b7d6ffb (diff) | |
Notes
Diffstat (limited to 'usr.bin/compress')
| -rw-r--r-- | usr.bin/compress/compress.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/compress/compress.c b/usr.bin/compress/compress.c index 32d94960eb9d..2736e5c55408 100644 --- a/usr.bin/compress/compress.c +++ b/usr.bin/compress/compress.c @@ -75,7 +75,7 @@ main(argc, argv) int argc; char *argv[]; { - enum {COMPRESS, DECOMPRESS} style; + enum {COMPRESS, DECOMPRESS} style = COMPRESS; size_t len; int bits, cat, ch; char *p, newname[MAXPATHLEN]; @@ -88,7 +88,10 @@ main(argc, argv) style = DECOMPRESS; else if (!strcmp(p, "compress")) style = COMPRESS; - else + else if (!strcmp(p, "zcat")) { + style = DECOMPRESS; + cat = 1; + } else errx(1, "unknown program name"); bits = cat = 0; |
