From ae5a9cd7b2d70fc2ea50961d1484e9f87a327d6f Mon Sep 17 00:00:00 2001 From: robertmh Date: Wed, 30 Jan 2008 14:42:09 +0000 Subject: [PATCH] 2008-01-30 Tristan Gingold * kern/rescue.c: Silently accept empty lines. --- ChangeLog | 4 ++++ kern/rescue.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8cd297bc6..455abb46f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-30 Tristan Gingold + + * kern/rescue.c: Silently accept empty lines. + 2008-01-29 Bean * boot/i386/pc/lnxboot.S (data_start): Code cleanup. diff --git a/kern/rescue.c b/kern/rescue.c index 9d7da10e7..bd5d579f9 100644 --- a/kern/rescue.c +++ b/kern/rescue.c @@ -659,6 +659,8 @@ grub_enter_rescue_mode (void) /* Get a command line. */ grub_rescue_get_command_line ("grub rescue> "); + if (line[0] == 0) + continue; if (grub_parser_split_cmdline (line, getline, &n, &args) || n < 0) continue;