Module Name:    src
Committed By:   christos
Date:           Thu Nov 14 04:00:48 UTC 2013

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

Log Message:
add --gnu for pax.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/bin/pax/options.c
cvs rdiff -u -r1.61 -r1.62 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.114 src/bin/pax/options.c:1.115
--- src/bin/pax/options.c:1.114	Thu Aug  9 07:05:59 2012
+++ src/bin/pax/options.c	Wed Nov 13 23:00:48 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: options.c,v 1.114 2012/08/09 11:05:59 christos Exp $	*/
+/*	$NetBSD: options.c,v 1.115 2013/11/14 04:00:48 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.114 2012/08/09 11:05:59 christos Exp $");
+__RCSID("$NetBSD: options.c,v 1.115 2013/11/14 04:00:48 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -128,8 +128,9 @@ static int get_line_error;
 #define	OPT_STRICT			15
 #define	OPT_SPARSE			16
 #define OPT_XZ				17
+#define OPT_GNU				18
 #if !HAVE_NBTOOL_CONFIG_H
-#define	OPT_CHROOT			18
+#define	OPT_CHROOT			19
 #endif
 
 /*
@@ -248,6 +249,8 @@ struct option pax_longopts[] = {
 						OPT_USE_COMPRESS_PROGRAM },
 	{ "xz",			no_argument,		0,
 						OPT_XZ },
+	{ "gnu",		no_argument,		0,
+						OPT_GNU },
 	{ 0,			0,			0,
 						0 },
 };
@@ -655,6 +658,9 @@ pax_options(int argc, char **argv)
 		case OPT_XZ:
 			gzip_program = XZ_CMD;
 			break;
+		case OPT_GNU:
+			is_gnutar = 1;
+			break;
 		case '?':
 		default:
 			pax_usage();

Index: src/bin/pax/pax.1
diff -u src/bin/pax/pax.1:1.61 src/bin/pax/pax.1:1.62
--- src/bin/pax/pax.1:1.61	Sun Jun 19 03:34:24 2011
+++ src/bin/pax/pax.1	Wed Nov 13 23:00:48 2013
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pax.1,v 1.61 2011/06/19 07:34:24 wiz Exp $
+.\"    $NetBSD: pax.1,v 1.62 2013/11/14 04:00:48 christos Exp $
 .\"
 .\" Copyright (c) 1992 Keith Muller.
 .\" Copyright (c) 1992, 1993
@@ -33,7 +33,7 @@
 .\"
 .\"	@(#)pax.1	8.4 (Berkeley) 4/18/94
 .\"
-.Dd June 18, 2011
+.Dd November 13, 2013
 .Dt PAX 1
 .Os
 .Sh NAME
@@ -740,6 +740,8 @@ as the result of any specific archive fo
 The individual archive formats may impose additional restrictions on use.
 Typical archive format restrictions include (but are not limited to):
 file pathname length, file size, link pathname length and the type of the file.
+.It Fl Fl gnu
+Recognize GNU tar extensionss.
 .It Fl Fl xz
 Use
 .Xr xz 1

Reply via email to