Bug fix: False -status failure with -boot_image --interval:appended_partition
This commit is contained in:
parent
23d0d8e90a
commit
e9cbf38c01
@ -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;
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2021.05.25.192155"
|
#define Xorriso_timestamP "2021.05.25.195904"
|
||||||
|
Loading…
Reference in New Issue
Block a user