Excluded empty data files from being recognized as El Torito boot images
when an ISO gets loaded.
This commit is contained in:
parent
cb519e221e
commit
94f8503b57
@ -3227,10 +3227,14 @@ int image_builder_create_node(IsoNodeBuilder *builder, IsoImage *image,
|
|||||||
new = (IsoNode*) file;
|
new = (IsoNode*) file;
|
||||||
new->refcount = 0;
|
new->refcount = 0;
|
||||||
|
|
||||||
|
if (data->sections[0].size > 0) {
|
||||||
for (idx = 0; idx < fsdata->num_bootimgs; idx++)
|
for (idx = 0; idx < fsdata->num_bootimgs; idx++)
|
||||||
if (fsdata->eltorito && data->sections[0].block ==
|
if (fsdata->eltorito && data->sections[0].block ==
|
||||||
fsdata->bootblocks[idx])
|
fsdata->bootblocks[idx])
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
idx = fsdata->num_bootimgs;
|
||||||
|
}
|
||||||
if (idx < fsdata->num_bootimgs) {
|
if (idx < fsdata->num_bootimgs) {
|
||||||
/* it is boot image node */
|
/* it is boot image node */
|
||||||
if (image->bootcat->bootimages[idx]->image != NULL) {
|
if (image->bootcat->bootimages[idx]->image != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user