From e9cbf38c0178258596756288aca34d0e22e92cd5 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 25 May 2021 21:59:32 +0200 Subject: [PATCH] Bug fix: False -status failure with -boot_image --interval:appended_partition --- xorriso/iso_img.c | 6 +++++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xorriso/iso_img.c b/xorriso/iso_img.c index 271c666c..9687e6e2 100644 --- a/xorriso/iso_img.c +++ b/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; diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 32df3909..942046a3 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2021.05.25.192155" +#define Xorriso_timestamP "2021.05.25.195904"