Bug fix: Data files named /boot.catalog or ./boot.cat could be left out of the emerging ISO if the boot catalog was set to be hidden
This commit is contained in:
@ -621,7 +621,7 @@ int Xorriso_attach_boot_image(struct XorrisO *xorriso, int flag)
|
||||
int emul, platform_id;
|
||||
off_t load_size;
|
||||
struct stat stbuf;
|
||||
int hflag= 0, is_interval= 0;
|
||||
int hflag= 0, is_interval= 0, cat_tries;
|
||||
|
||||
if(xorriso->boot_image_bin_path[0] == 0 && !(flag & 2)) {
|
||||
|
||||
@ -705,9 +705,19 @@ int Xorriso_attach_boot_image(struct XorrisO *xorriso, int flag)
|
||||
cpt++;
|
||||
}
|
||||
strcpy(cpt, "boot.cat");
|
||||
if(xorriso->boot_image_cat_hidden & 1) {
|
||||
/* Find a name which does not yet exist */
|
||||
ret= 1;
|
||||
for(cat_tries= 1; ret > 0 && cat_tries < 1000000; cat_tries++) {
|
||||
ret= Xorriso_node_from_path(xorriso, image,
|
||||
xorriso->boot_image_cat_path, &node, 1);
|
||||
if(ret > 0)
|
||||
sprintf(cpt, "real%d_boot.cat", cat_tries);
|
||||
}
|
||||
}
|
||||
}
|
||||
ret= Xorriso_node_from_path(xorriso, image, xorriso->boot_image_cat_path,
|
||||
&node, 1);
|
||||
&node, 1);
|
||||
if(ret > 0) {
|
||||
if(!xorriso->do_overwrite) {
|
||||
sprintf(xorriso->info_text,
|
||||
|
Reference in New Issue
Block a user