]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
authormarco_g <marco_g@localhost>
Sun, 27 Jun 2004 11:36:39 +0000 (11:36 +0000)
committermarco_g <marco_g@localhost>
Sun, 27 Jun 2004 11:36:39 +0000 (11:36 +0000)
* kern/rescue.c (grub_enter_rescue_mode): Don't continue when
there was no input.

ChangeLog
kern/rescue.c

index 05fc4b5a424c17a5e121c44ac2d1e6200ae84a69..9b321798c86912713c0f597be16c73b644a2ea52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 6ee2a300a744bcc7718928838d4f88efe8921d00..764343550163cb74102818be2cdf903d4b878ae1 100644 (file)
@@ -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