Bug fix: False -status failure with -boot_image --interval:appended_partition

This commit is contained in:
Thomas Schmitt 2021-05-25 21:59:32 +02:00
parent 23d0d8e90a
commit e9cbf38c01
2 changed files with 6 additions and 2 deletions

View File

@ -426,7 +426,11 @@ int Xorriso_boot_item_status(struct XorrisO *xorriso, char *cat_path,
} }
file_size= 0; file_size= 0;
ret= Xorriso_iso_lstat(xorriso, bin_path, &stbuf, 2 | 4); if(strncmp(bin_path, "--interval:appended_partition_", 30) == 0) {
ret= -1;
} else {
ret= Xorriso_iso_lstat(xorriso, bin_path, &stbuf, 2 | 4);
}
if(ret == 0) { if(ret == 0) {
file_size= ((stbuf.st_size / (off_t) 512) + file_size= ((stbuf.st_size / (off_t) 512) +
!!(stbuf.st_size % (off_t) 512)) * 512; !!(stbuf.st_size % (off_t) 512)) * 512;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2021.05.25.192155" #define Xorriso_timestamP "2021.05.25.195904"