Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax we need to have -force-local on pax.



details:   https://anonhg.NetBSD.org/src/rev/6c6aaaab1ee1
branches:  trunk
changeset: 538288:6c6aaaab1ee1
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 16 21:45:31 2002 +0000

description:
we need to have -force-local on pax.

diffstat:

 bin/pax/options.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r cb0106640a57 -r 6c6aaaab1ee1 bin/pax/options.c
--- a/bin/pax/options.c Wed Oct 16 21:26:32 2002 +0000
+++ b/bin/pax/options.c Wed Oct 16 21:45:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.c,v 1.49 2002/10/16 18:53:40 christos Exp $    */
+/*     $NetBSD: options.c,v 1.50 2002/10/16 21:45:31 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.49 2002/10/16 18:53:40 christos Exp $");
+__RCSID("$NetBSD: options.c,v 1.50 2002/10/16 21:45:31 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -204,6 +204,8 @@
 struct option pax_longopts[] = {
        { "insecure",           no_argument,            0,
                                                OPT_INSECURE },
+       { "force-local",        no_argument,            0,
+                                               OPT_FORCE_LOCAL },
 };
 
 /*
@@ -584,6 +586,9 @@
                case OPT_INSECURE:
                        secure = 0;
                        break;
+               case OPT_FORCE_LOCAL:
+                       forcelocal = 0;
+                       break;
                case '?':
                default:
                        pax_usage();
@@ -693,7 +698,6 @@
        { "gunzip",             no_argument,            0,      'z' },
        { "read-full-blocks",   no_argument,            0,      'B' },
        { "directory",          required_argument,      0,      'C' },
-       { "tape-length",        required_argument,      0,      'L' },
        { "absolute-paths",     no_argument,            0,      'P' },
        { "files-from",         required_argument,      0,      'T' },
        { "exclude-from",       required_argument,      0,      'X' },
@@ -729,6 +733,8 @@
                                                OPT_IGNORE_FAILED_READ },
        { "keep-old-files",     no_argument,            0,      'k' },
        { "starting-file",      no_argument,            0,      'K' },
+       /* XXX: Conflicts with current -L */
+       { "tape-length",        required_argument,      0,      'L' },
        { "multi-volume",       no_argument,            0,      'M' },
        { "after-date",         required_argument,      0,      'N' },
        { "newer",              required_argument,      0,      'N' },



Home | Main Index | Thread Index | Old Index