From 6c51eb648e0c094f94170a70dfe48df15e1f7b91 Mon Sep 17 00:00:00 2001 From: marco_g Date: Sun, 27 Jun 2004 11:36:39 +0000 Subject: [PATCH] 2004-06-27 Tomas Ebenlendr * kern/rescue.c (grub_enter_rescue_mode): Don't continue when there was no input. --- ChangeLog | 5 +++++ kern/rescue.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 05fc4b5a4..9b321798c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-27 Tomas Ebenlendr + + * kern/rescue.c (grub_enter_rescue_mode): Don't continue when + there was no input. + 2004-06-27 Tomas Ebenlendr * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed diff --git a/kern/rescue.c b/kern/rescue.c index 6ee2a300a..764343550 100644 --- a/kern/rescue.c +++ b/kern/rescue.c @@ -676,7 +676,7 @@ grub_enter_rescue_mode (void) /* Get a command line. */ grub_rescue_get_command_line ("grub rescue> "); - if (grub_split_cmdline (line, getline, &n, &args)) + if (grub_split_cmdline (line, getline, &n, &args) || n < 0) continue; /* In case of an assignment set the environment accordingly