Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mtree Support `/unset all', to unset all of the glo...



details:   https://anonhg.NetBSD.org/src/rev/c8ff3ffdb815
branches:  trunk
changeset: 521775:c8ff3ffdb815
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Feb 05 12:15:13 2002 +0000

description:
Support `/unset all', to unset all of the global values set with `/set ...'

diffstat:

 usr.sbin/mtree/mtree.8 |  7 +++++--
 usr.sbin/mtree/spec.c  |  6 ++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r d5836cdd7a4b -r c8ff3ffdb815 usr.sbin/mtree/mtree.8
--- a/usr.sbin/mtree/mtree.8    Tue Feb 05 11:15:04 2002 +0000
+++ b/usr.sbin/mtree/mtree.8    Tue Feb 05 12:15:13 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mtree.8,v 1.29 2002/01/24 03:20:12 lukem Exp $
+.\"    $NetBSD: mtree.8,v 1.30 2002/02/05 12:15:13 lukem Exp $
 .\"
 .\" Copyright (c) 1989, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     @(#)mtree.8    8.2 (Berkeley) 12/11/93
 .\"
-.Dd January 24, 2002
+.Dd February 5, 2002
 .Dt MTREE 8
 .Os
 .Sh NAME
@@ -446,6 +446,9 @@
 .Ql /unset ,
 followed by whitespace, followed by one or more keywords,
 separated by whitespace.
+If
+.Ql all
+is specified, unset all of the keywords.
 .It
 A file specification, consisting of a path name, followed by whitespace,
 followed by zero or more whitespace separated keyword/value pairs.
diff -r d5836cdd7a4b -r c8ff3ffdb815 usr.sbin/mtree/spec.c
--- a/usr.sbin/mtree/spec.c     Tue Feb 05 11:15:04 2002 +0000
+++ b/usr.sbin/mtree/spec.c     Tue Feb 05 12:15:13 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec.c,v 1.45 2002/01/31 22:44:05 tv Exp $     */
+/*     $NetBSD: spec.c,v 1.46 2002/02/05 12:15:14 lukem Exp $  */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -74,7 +74,7 @@
 #if 0
 static char sccsid[] = "@(#)spec.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: spec.c,v 1.45 2002/01/31 22:44:05 tv Exp $");
+__RCSID("$NetBSD: spec.c,v 1.46 2002/02/05 12:15:14 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -502,8 +502,6 @@
        while ((p = strsep(&t, " \t")) != NULL) {
                if (*p == '\0')
                        continue;
-               if (strcmp(p, "all") == 0)
-                       mtree_err("invalid keyword `all'");
                ip->flags &= ~parsekey(p, NULL);
        }
 }



Home | Main Index | Thread Index | Old Index