Allow "boot hd:,%BOOT" to work again (and thus Quik).

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@577 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Laurent Vivier
2009-09-02 22:25:44 +00:00
parent 38283e32ac
commit 39e3ce79f3

View File

@@ -79,7 +79,7 @@ dlabel_open( dlabel_info_t *di )
/* argument format: parnum,filename */
s = path;
filename = NULL;
filename = "";
if( *s == '-' || isdigit(*s) ||
(*s >= 'a' && *s < ('a' + 8)
&& (*(s + 1) == ',' || *(s + 1) == '\0'))) {
@@ -146,7 +146,7 @@ dlabel_open( dlabel_info_t *di )
push_str( filename );
PUSH_ph( ph );
fword("interpose");
} else if (filename && strcmp(filename, "%BOOT") != 0) {
} else if (*filename && strcmp(filename, "%BOOT") != 0) {
goto out;
}
success = 1;