Browse Source

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

master
Thomas Schmitt 4 months ago
parent
commit
e9cbf38c01
  1. 6
      xorriso/iso_img.c
  2. 2
      xorriso/xorriso_timestamp.h

6
xorriso/iso_img.c

@ -426,7 +426,11 @@ int Xorriso_boot_item_status(struct XorrisO *xorriso, char *cat_path,
}
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) {
file_size= ((stbuf.st_size / (off_t) 512) +
!!(stbuf.st_size % (off_t) 512)) * 512;

2
xorriso/xorriso_timestamp.h

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

Loading…
Cancel
Save