Skip to content

Commit

Permalink
12729 bootadm set-menu timeout crashes without timeout value
Browse files Browse the repository at this point in the history
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
  • Loading branch information
alhazred authored and rmustacc committed May 18, 2020
1 parent c039d81 commit f13f199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/src/cmd/boot/bootadm/bootadm_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
* Copyright 2016 Toomas Soome <tsoome@me.com>
* Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
* Copyright 2020 2020 Data Direct Networks.
*/

/*
Expand Down Expand Up @@ -616,6 +617,9 @@ set_option(struct menu_lst *menu, char *dummy, char *opt)
val = strchr(opt, '=');
if (val != NULL) {
*val++ = '\0';
} else {
bam_error(_("missing value in key=value\n"));
return (BAM_ERROR);
}

if (strcmp(opt, "default") == 0) {
Expand Down

0 comments on commit f13f199

Please sign in to comment.