diff options
author | smh <smh@FreeBSD.org> | 2016-01-21 15:27:44 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-21 15:27:44 +0000 |
commit | d6a31ebe03d5c26e102e7ef256ccdb0bbc1f438f (patch) | |
tree | bbb8e75659a13f11c5c4db2ed74151b1bf8cfd32 /contrib/bsnmp/snmp_mibII/mibII.h | |
parent | a4e93c419f733f0c7333adda4f2ac963eb43f770 (diff) | |
download | FreeBSD-src-d6a31ebe03d5c26e102e7ef256ccdb0bbc1f438f.zip FreeBSD-src-d6a31ebe03d5c26e102e7ef256ccdb0bbc1f438f.tar.gz |
Prevent loader.conf load failure due to unknown console entries
When processing loader.conf if console contained an entry for an unsupported
console then cons_set would return an error refusing to set any console.
This has two side effects:
1. Forth would throw a syntax error and stop processing loader.conf at that
point.
2. The value of console is ignored.
#1 Means other important loader.conf entries may not be processed, which is
clearly undesirable.
#2 Means the users preference for console aren't applied even if they did
contain valid options. Now we have support for multi boot paths from a
single image e.g. bios and efi mode the console preference needs to deal
with the need to set preference for more than one source.
Fix this by:
* Returning CMD_OK where possible from cons_set.
* Allowing set with at least one valid console to proceed.
Reviewed by: allanjude
MFC after: 1 week
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D5018
Diffstat (limited to 'contrib/bsnmp/snmp_mibII/mibII.h')
0 files changed, 0 insertions, 0 deletions