From f4359e4e36f9804877e4fe08c11e2bab3379f875 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 24 Oct 2006 00:02:23 +0000 Subject: [PATCH] Since multiple hints lines do not work, make doing that a fatal error. --- usr.sbin/config/config.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 344a7774c011..714dbe1853d8 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; }