diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1996-01-23 12:29:07 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1996-01-23 12:29:07 +0000 |
| commit | 8356464a861a6f4246dd1be789103f9591135aa8 (patch) | |
| tree | 9fa2da304b3ae0ff653631581c1717586dfb28c2 /usr.bin/file/compress.c | |
| parent | c7510038dc04bc187f80816d41cc88dfe8ae1e84 (diff) | |
Notes
Diffstat (limited to 'usr.bin/file/compress.c')
| -rw-r--r-- | usr.bin/file/compress.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/usr.bin/file/compress.c b/usr.bin/file/compress.c index a665306ac951..096abb61e4b2 100644 --- a/usr.bin/file/compress.c +++ b/usr.bin/file/compress.c @@ -4,7 +4,7 @@ * information if recognized * uncompress(method, old, n, newch) - uncompress old into new, * using method, return sizeof new - * $Id: compress.c,v 1.8 1994/01/21 01:38:24 christos Exp $ + * $Id: compress.c,v 1.9 1995/05/20 22:09:21 christos Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -20,13 +20,12 @@ static struct { char *argv[3]; int silent; } compr[] = { - { "\037\235", 2, { "uncompress", "-c", NULL }, 0 }, - { "\037\213", 2, { "gzip", "-dq", NULL }, 1 }, - /* - * XXX pcat does not work, cause I don't know how to make it read stdin, - * so we use gzip - */ - { "\037\036", 2, { "gzip", "-dq", NULL }, 0 }, + { "\037\235", 2, { "uncompress", "-c", NULL }, 0 }, /* compressed */ + { "\037\213", 2, { "gzip", "-cdq", NULL }, 1 }, /* gzipped */ + { "\037\236", 2, { "gzip", "-cdq", NULL }, 1 }, /* frozen */ + { "\037\240", 2, { "gzip", "-cdq", NULL }, 1 }, /* SCO LZH */ + /* the standard pack utilities do not accept standard input */ + { "\037\036", 2, { "gzip", "-cdq", NULL }, 0 }, /* packed */ }; static int ncompr = sizeof(compr) / sizeof(compr[0]); @@ -121,5 +120,3 @@ int n; return n; } } - - |
