public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] [PATCH] fix elilo invocations from the boot manager
@ 2001-06-05 18:24 Bill Nottingham
  2001-06-07 16:00 ` Stephane Eranian
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Nottingham @ 2001-06-05 18:24 UTC (permalink / raw)
  To: linux-ia64

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

In some odd cases, when the boot manager invokes elilo, argc is 0,
while Optind is initialized to 1. If we continue with prompting
disabled, strange things can happen. (usually, attempts to boot
a non-existant kernel.)

Bill

[-- Attachment #2: elilo-2.5-prompt.patch --]
[-- Type: text/plain, Size: 394 bytes --]

diff -ru gnu-efi-2.5/elilo/elilo.c ook/elilo/elilo.c
--- elilo/elilo.c	Mon May 21 17:58:56 2001
+++ elilo/elilo.c	Tue Jun  5 14:02:04 2001
@@ -373,7 +381,7 @@
 	 * if user specified a kernel name or label, then ignore
 	 * forced interactive mode
 	 */
-	if (argv[Optind]) elilo_opt.prompt = 0;
+	if (argv[Optind] && Optind <= argc) elilo_opt.prompt = 0;
 
 	/*
 	 * which chooser we will use 

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

end of thread, other threads:[~2001-06-07 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-05 18:24 [Linux-ia64] [PATCH] fix elilo invocations from the boot manager Bill Nottingham
2001-06-07 16:00 ` Stephane Eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox