diff options
Diffstat (limited to 'src/shared/bootspec.c')
-rw-r--r-- | src/shared/bootspec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 8ae891e8a0..4cced23adc 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -980,6 +980,8 @@ static int boot_config_find(const BootConfig *config, const char *id) { if (id[0] == '@') { if (!strcaseeq(id, "@saved")) return -1; + if (!config->entry_selected) + return -1; id = config->entry_selected; } @@ -1268,7 +1270,7 @@ static void boot_entry_file_list( int status = chase_symlinks_and_access(p, root, CHASE_PREFIX_ROOT|CHASE_PROHIBIT_SYMLINKS, F_OK, NULL, NULL); /* Note that this shows two '/' between the root and the file. This is intentional to highlight (in - * the abscence of color support) to the user that the boot loader is only interested in the second + * the absence of color support) to the user that the boot loader is only interested in the second * part of the file. */ printf("%13s%s %s%s/%s", strempty(field), field ? ":" : " ", ansi_grey(), root, ansi_normal()); |