diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2003-07-06 02:00:52 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2003-07-06 02:00:52 +0000 |
commit | 246ff0a3e7be313e20c1a4f425f0929d3af47a1a (patch) | |
tree | 4f0da957cfaab78179d8ac11e107f67a46960afb /usr.sbin/config | |
parent | ff07f3efa8e7c764e1d583fae680c5da4075c133 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/config/config.y | 3 |
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 |