summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-12-03 13:50:58 -0800
committerJoshua M. Clulow <josh@sysmgr.org>2018-12-03 13:50:58 -0800
commit9dded1d9015db0b91278731dfec380891ea0eb14 (patch)
treec331b1ad2ce21183960098c364c865ab3633f68b
parent8421bc58f13e94e818fb7374158f5450f9c4931d (diff)
downloadillumos-joyent-9dded1d9015db0b91278731dfec380891ea0eb14.tar.gz
10013 bootadm: list_menu_entry() is missing else
Reviewed by: Andy Fiddaman <omnios@citrus-it.net> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r--usr/src/cmd/boot/bootadm/bootadm_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/boot/bootadm/bootadm_loader.c b/usr/src/cmd/boot/bootadm/bootadm_loader.c
index 6f96f4b053..2a2a95c99e 100644
--- a/usr/src/cmd/boot/bootadm/bootadm_loader.c
+++ b/usr/src/cmd/boot/bootadm/bootadm_loader.c
@@ -907,7 +907,7 @@ list_menu_entry(menu_entry_t *entry, char *setting)
if (*setting == '\0') {
(void) printf("Kernel: %s\n",
getenv("bootfile"));
- } if (strcasecmp(setting, "kernel") == 0) {
+ } else if (strcasecmp(setting, "kernel") == 0) {
(void) printf("%s\n", getenv("bootfile"));
goto done;
}