Skip to content

Commit

Permalink
11777 bootadm: list-menu -o entry=X does not list details when bootfs…
Browse files Browse the repository at this point in the history
… has colon

Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Oct 9, 2019
1 parent 4348eb9 commit 160df57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/src/cmd/boot/bootadm/bootadm_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,9 @@ list_menu_entry(menu_entry_t *entry, char *setting)
ficlVm *vm;
int mounted;

ptr = strrchr(entry->me_bootfs, ':');
if (strcmp(entry->me_type, "bootfs") != 0 ||
strchr(entry->me_bootfs, ':') != NULL) {
(ptr != NULL && ptr[1] == '\0')) {
(void) printf("\nTitle: %s\n", entry->me_title);
(void) printf("Type: %s\n", entry->me_type);
(void) printf("Device: %s\n", entry->me_bootfs);
Expand Down

0 comments on commit 160df57

Please sign in to comment.