From: Matt Fleming Date: Wed, 25 May 2011 14:35:53 +0000 (+0100) Subject: ldlinux: Fix "prompt" config option parsing X-Git-Tag: syslinux-5.00-pre1~42^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=272218d09ee73ea2c5d84c2cf8bb4c024a7a0219;p=platform%2Fupstream%2Fsyslinux.git ldlinux: Fix "prompt" config option parsing Previously, we were looking for the value of the prompt option 8 characters after the first 'p', clearly since "prompt" is only 6 characters we should be searching after the sixth character. I noticed this bug when specifying "prompt 1" in my config file and Syslinux still tried to boot the default kernel. Signed-off-by: Matt Fleming --- diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c index 8ded92a..1c8cac3 100644 --- a/com32/elflink/ldlinux/readconfig.c +++ b/com32/elflink/ldlinux/readconfig.c @@ -1105,7 +1105,7 @@ do_include: else if (looking_at(p, "implicit")) { allowimplicit = atoi(skipspace(p + 8)); } else if (looking_at(p, "prompt")) { - forceprompt = atoi(skipspace(p + 8)); + forceprompt = atoi(skipspace(p + 6)); } else if (looking_at(p, "console")) { displaycon = atoi(skipspace(p + 7)); } else if (looking_at(p, "allowoptions")) {