Skip to contentSkip to conversation

PATCH: silently accept empty lines in rescue mode

PATCH Tristan Gingold 3 participants 4 messages Jan 29, 2008 – Jan 30, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

extracted from my IA64 patch.

Tristan.

2008-01-28 Tristan Gingold <[email protected]>

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

kern/rescue.c +2 -0
diff -ruNp -x '*~' -x CVS grub2.orig/kern/rescue.c grub2/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;
#2 lore raw
Quoted 3 lines · Marco Gerards

Tristan Gingold <[email protected]> writes:

What did it print?

Nothing. Typing enter at the prompt simply print a new prompt. Like bash.

Quoted 1 line

This can be applied.

I don't have commit rights, so I can't apply it.

Tristan.

#3 lore raw
Quoted 3 lines · Tristan Gingold
Quoted 1 line

This can be applied.

I don't have commit rights, so I can't apply it.

Committed.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)