All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: silently accept empty lines in rescue mode
@ 2008-01-29  5:26 Tristan Gingold
  2008-01-29  8:26 ` Marco Gerards
  0 siblings, 1 reply; 4+ messages in thread
From: Tristan Gingold @ 2008-01-29  5:26 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 45 bytes --]

Hi,

extracted from my IA64 patch.

Tristan.

[-- Attachment #2: grub-rescue.diff --]
[-- Type: text/plain, Size: 559 bytes --]

2008-01-28  Tristan Gingold  <gingold@free.fr>

	* kern/rescue.c: Silently accept empty lines.


diff -ruNp -x '*~' -x CVS grub2.orig/kern/rescue.c grub2/kern/rescue.c
--- grub2.orig/kern/rescue.c	2007-09-03 22:28:23.000000000 +0200
+++ grub2/kern/rescue.c	2008-01-28 16:29:58.000000000 +0100
@@ -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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-30 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29  5:26 PATCH: silently accept empty lines in rescue mode Tristan Gingold
2008-01-29  8:26 ` Marco Gerards
2008-01-30  5:50   ` Tristan Gingold
2008-01-30 14:41     ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.