Module Name:    src
Committed By:   christos
Date:           Sat Jun 19 00:43:57 UTC 2010

Modified Files:
        src/bin/pax: options.c pax.1

Log Message:
add --use-compress-program to pax, requested by mrg.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/bin/pax/options.c
cvs rdiff -u -r1.57 -r1.58 src/bin/pax/pax.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/pax/options.c
diff -u src/bin/pax/options.c:1.106 src/bin/pax/options.c:1.107
--- src/bin/pax/options.c:1.106	Mon Dec 14 00:04:48 2009
+++ src/bin/pax/options.c	Fri Jun 18 20:43:57 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: options.c,v 1.106 2009/12/14 05:04:48 dholland Exp $	*/
+/*	$NetBSD: options.c,v 1.107 2010/06/19 00:43:57 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)options.c	8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: options.c,v 1.106 2009/12/14 05:04:48 dholland Exp $");
+__RCSID("$NetBSD: options.c,v 1.107 2010/06/19 00:43:57 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -240,6 +240,8 @@
 						OPT_INSECURE },
 	{ "force-local",	no_argument,		0,
 						OPT_FORCE_LOCAL },
+	{ "use-compress-program", required_argument,	0,
+						OPT_USE_COMPRESS_PROGRAM },
 	{ 0,			0,			0,
 						0 },
 };
@@ -474,6 +476,7 @@
 			/*
 			 * use gzip.  Non standard option.
 			 */
+			zflag = 1;
 			gzip_program = GZIP_CMD;
 			break;
 		case 'A':
@@ -642,6 +645,10 @@
 		case OPT_FORCE_LOCAL:
 			forcelocal = 0;
 			break;
+		case OPT_USE_COMPRESS_PROGRAM:
+			zflag = 1;
+			gzip_program = optarg;
+			break;
 		case '?':
 		default:
 			pax_usage();

Index: src/bin/pax/pax.1
diff -u src/bin/pax/pax.1:1.57 src/bin/pax/pax.1:1.58
--- src/bin/pax/pax.1:1.57	Mon Apr  5 17:22:37 2010
+++ src/bin/pax/pax.1	Fri Jun 18 20:43:57 2010
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pax.1,v 1.57 2010/04/05 21:22:37 joerg Exp $
+.\"    $NetBSD: pax.1,v 1.58 2010/06/19 00:43:57 christos Exp $
 .\"
 .\" Copyright (c) 1992 Keith Muller.
 .\" Copyright (c) 1992, 1993
@@ -33,7 +33,7 @@
 .\"
 .\"	@(#)pax.1	8.4 (Berkeley) 4/18/94
 .\"
-.Dd September 6, 2009
+.Dd June 18, 2010
 .Dt PAX 1
 .Os
 .Sh NAME
@@ -1101,6 +1101,9 @@
 files that contain
 .Dq ..
 can be processed.
+.It Fl -use-compress-program
+Use the named program as the program to decompress the input or compress
+the output.
 .El
 .Pp
 The options that operate on the names of files or archive members

Reply via email to