Module Name:    src
Committed By:   uebayasi
Date:           Fri Oct 10 10:16:19 UTC 2014

Modified Files:
        src/usr.bin/config: sem.c

Log Message:
If an attribute is selected, select its dependencies too.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.bin/config/sem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/config/sem.c
diff -u src/usr.bin/config/sem.c:1.53 src/usr.bin/config/sem.c:1.54
--- src/usr.bin/config/sem.c:1.53	Fri Oct 10 08:14:47 2014
+++ src/usr.bin/config/sem.c	Fri Oct 10 10:16:19 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: sem.c,v 1.53 2014/10/10 08:14:47 uebayasi Exp $	*/
+/*	$NetBSD: sem.c,v 1.54 2014/10/10 10:16:19 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -1861,7 +1861,13 @@ split(const char *name, size_t nlen, cha
 void
 selectattr(struct attr *a)
 {
+	struct attrlist *al;
+	struct attr *dep;
 
+	for (al = a->a_deps; al != NULL; al = al->al_next) {
+		dep = al->al_this;
+		selectattr(dep);
+	}
 	(void)ht_insert(selecttab, a->a_name, __UNCONST(a->a_name));
 	CFGDBG(3, "attr selected `%s'", a->a_name);
 }

Reply via email to