Virtual ISO: Look for El Torito boot file only in the root directory

This commit is contained in:
RichardG867
2022-03-27 14:37:40 -03:00
parent 8e971eaf5a
commit 39e1b5b817

View File

@@ -661,7 +661,7 @@ viso_init(const char *dirname, int *error)
}
/* Detect El Torito boot code file and set it accordingly. */
if (!strnicmp(readdir_entry->d_name, "eltorito.", 9) && (!stricmp(readdir_entry->d_name + 9, "com") || !stricmp(readdir_entry->d_name + 9, "img")))
if ((dir == &viso->root_dir) && !strnicmp(readdir_entry->d_name, "eltorito.", 9) && (!stricmp(readdir_entry->d_name + 9, "com") || !stricmp(readdir_entry->d_name + 9, "img")))
viso->eltorito_entry = last_entry;
/* Set short filename. */