Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config config(1): Emit only referenced interface att...



details:   https://anonhg.NetBSD.org/src/rev/6dd9359ffbef
branches:  trunk
changeset: 333386:6dd9359ffbef
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Oct 31 17:43:55 2014 +0000

description:
config(1): Emit only referenced interface attributes in ioconf.c

diffstat:

 usr.bin/config/mkioconf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b89c8450702b -r 6dd9359ffbef usr.bin/config/mkioconf.c
--- a/usr.bin/config/mkioconf.c Fri Oct 31 16:28:56 2014 +0000
+++ b/usr.bin/config/mkioconf.c Fri Oct 31 17:43:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkioconf.c,v 1.22 2014/10/29 17:14:50 christos Exp $   */
+/*     $NetBSD: mkioconf.c,v 1.23 2014/10/31 17:43:55 uebayasi Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkioconf.c,v 1.22 2014/10/29 17:14:50 christos Exp $");
+__RCSID("$NetBSD: mkioconf.c,v 1.23 2014/10/31 17:43:55 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <err.h>
@@ -177,6 +177,8 @@
        a = value;
        if (!a->a_iattr)
                return (0);
+       if (ht_lookup(selecttab, name) == NULL)
+               return (0);
 
        if (a->a_locs) {
                fprintf(fp,



Home | Main Index | Thread Index | Old Index