Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax add --gnu for pax.
details: https://anonhg.NetBSD.org/src/rev/55804cb20e3e
branches: trunk
changeset: 791356:55804cb20e3e
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 14 04:00:48 2013 +0000
description:
add --gnu for pax.
diffstat:
bin/pax/options.c | 12 +++++++++---
bin/pax/pax.1 | 6 ++++--
2 files changed, 13 insertions(+), 5 deletions(-)
diffs (75 lines):
diff -r 6b2447d97d5b -r 55804cb20e3e bin/pax/options.c
--- a/bin/pax/options.c Thu Nov 14 02:27:29 2013 +0000
+++ b/bin/pax/options.c Thu Nov 14 04:00:48 2013 +0000
@@ -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 @@
#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 @@
OPT_USE_COMPRESS_PROGRAM },
{ "xz", no_argument, 0,
OPT_XZ },
+ { "gnu", no_argument, 0,
+ OPT_GNU },
{ 0, 0, 0,
0 },
};
@@ -655,6 +658,9 @@
case OPT_XZ:
gzip_program = XZ_CMD;
break;
+ case OPT_GNU:
+ is_gnutar = 1;
+ break;
case '?':
default:
pax_usage();
diff -r 6b2447d97d5b -r 55804cb20e3e bin/pax/pax.1
--- a/bin/pax/pax.1 Thu Nov 14 02:27:29 2013 +0000
+++ b/bin/pax/pax.1 Thu Nov 14 04:00:48 2013 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index