summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2003-07-06 02:00:52 +0000
committerjkoshy <jkoshy@FreeBSD.org>2003-07-06 02:00:52 +0000
commit246ff0a3e7be313e20c1a4f425f0929d3af47a1a (patch)
tree4f0da957cfaab78179d8ac11e107f67a46960afb /usr.sbin/config/config.y
parentff07f3efa8e7c764e1d583fae680c5da4075c133 (diff)
downloadFreeBSD-src-246ff0a3e7be313e20c1a4f425f0929d3af47a1a.zip
FreeBSD-src-246ff0a3e7be313e20c1a4f425f0929d3af47a1a.tar.gz
Disallow multiple 'machine' directives in a kernel configuration
file. Reviewed by: ru, bde
Diffstat (limited to 'usr.sbin/config/config.y')
-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 94b3c34..12440dd 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -126,6 +126,9 @@ Spec:
Config_spec:
ARCH Save_id
= {
+ if (machinename != NULL)
+ errx(1, "%s:%d: only one machine directive is allowed",
+ yyfile, yyline);
machinename = $2;
} |
CPU Save_id
OpenPOWER on IntegriCloud