Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Select attributes for filesystem options too.



details:   https://anonhg.NetBSD.org/src/rev/823ffc023be0
branches:  trunk
changeset: 802971:823ffc023be0
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Oct 10 10:46:05 2014 +0000

description:
Select attributes for filesystem options too.

diffstat:

 usr.bin/config/main.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 791127b71a12 -r 823ffc023be0 usr.bin/config/main.c
--- a/usr.bin/config/main.c     Fri Oct 10 10:25:00 2014 +0000
+++ b/usr.bin/config/main.c     Fri Oct 10 10:46:05 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.61 2014/10/10 10:22:49 uebayasi Exp $       */
+/*     $NetBSD: main.c,v 1.62 2014/10/10 10:46:05 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -1033,6 +1033,13 @@
        /* Add to select table. */
        (void)ht_insert(selecttab, n, __UNCONST(n));
        CFGDBG(3, "fs selected `%s'", name);
+
+       /*
+        * Select attribute if one exists.
+        */
+       struct attr *a;
+       if ((a = ht_lookup(attrtab, n)) != NULL)
+               selectattr(a);
 }
 
 void



Home | Main Index | Thread Index | Old Index