summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-10-24 00:02:23 +0000
committerimp <imp@FreeBSD.org>2006-10-24 00:02:23 +0000
commitf4f64df7ffac74a20b81485d903f1915b833b7e1 (patch)
treefb30b989d7b73f344caf2cf6cb046ce4f17acb7f /usr.sbin/config
parentc7db2750ccbe06f7357540a17bae353d0993fa05 (diff)
downloadFreeBSD-src-f4f64df7ffac74a20b81485d903f1915b833b7e1.zip
FreeBSD-src-f4f64df7ffac74a20b81485d903f1915b833b7e1.tar.gz
Since multiple hints lines do not work, make doing that a fatal error.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/config.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 344a777..714dbe1 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -191,6 +191,9 @@ Config_spec:
} |
HINTS ID
= {
+ if (hints != NULL)
+ errx(1, "More than one 'hints' line at %s:%d",
+ yyfile, yyline);
hints = $2;
hintmode = 1;
}
OpenPOWER on IntegriCloud