2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
* kern/rescue.c (grub_enter_rescue_mode): Don't continue when there was no input.
This commit is contained in:
parent
cfb12aff28
commit
6c51eb648e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
|
||||
|
||||
* kern/rescue.c (grub_enter_rescue_mode): Don't continue when
|
||||
there was no input.
|
||||
|
||||
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
|
||||
|
||||
* normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue