Module Name:    src
Committed By:   uebayasi
Date:           Fri Oct 10 10:46:06 UTC 2014

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

Log Message:
Select attributes for filesystem options too.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/config/main.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/main.c
diff -u src/usr.bin/config/main.c:1.61 src/usr.bin/config/main.c:1.62
--- src/usr.bin/config/main.c:1.61	Fri Oct 10 10:22:49 2014
+++ src/usr.bin/config/main.c	Fri Oct 10 10:46:05 2014
@@ -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 @@ addfsoption(const char *name)
 	/* 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

Reply via email to