diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-22 20:09:55 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-22 20:09:55 +0000 |
commit | cd06b07ab1df0cca27399fcbe997d5a0a05d2a4e (patch) | |
tree | b3911cc6842a28b055edd1648e432eefc941d5ef /bin/pax/options.c | |
parent | b94f37f55f7022871e1921d7578e3a9b689a522a (diff) |
Use zopen for compress-style compressed archives
Use libz for gzip-style compressed archives
Diffstat (limited to 'bin/pax/options.c')
-rw-r--r-- | bin/pax/options.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index e62b2c29718..24a37ed746e 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.8 1996/08/10 03:08:00 tholo Exp $ */ +/* $OpenBSD: options.c,v 1.9 1996/09/22 20:09:54 tholo Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.8 1996/08/10 03:08:00 tholo Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.9 1996/09/22 20:09:54 tholo Exp $"; #endif #endif /* not lint */ @@ -83,9 +83,6 @@ static void cpio_options __P((register int, register char **)); static void cpio_usage __P((void)); #endif -#define GZIP_CMD "gzip" /* command to run as gzip */ -#define COMPRESS_CMD "compress" /* command to run as compress */ - /* * Format specific routine table - MUST BE IN SORTED ORDER BY NAME * (see pax.h for description of each function) @@ -390,8 +387,7 @@ pax_options(argc, argv) /* * use gzip. Non standard option. */ - zflag = 1; - gzip_program = GZIP_CMD; + zflag = GZIP_CMP; break; case 'B': /* @@ -703,8 +699,7 @@ tar_options(argc, argv) /* * use gzip. Non standard option. */ - zflag = 1; - gzip_program = GZIP_CMD; + zflag = GZIP_CMP; break; case 'B': /* @@ -739,8 +734,7 @@ tar_options(argc, argv) /* * use compress. */ - zflag = 1; - gzip_program = COMPRESS_CMD; + zflag = COMPRESS_CMP; break; case '0': arcname = DEV_0; |