Browse Source

Image size tolerance of 300 kB when recognizing genisoimage -B "..."

master
Thomas Schmitt 6 years ago
parent
commit
07da1ea417
  1. 5
      xorriso/iso_img.c
  2. 2
      xorriso/xorriso_timestamp.h

5
xorriso/iso_img.c

@ -2164,8 +2164,9 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
start_cyl= 0xffffffff;
sscanf(contentpt, "%lu 0x%lx 0x%lx %lu %lu",
&partno, &id_tag, &perms, &start_cyl, &num_blocks);
if(partno > 0 && partno < 9 && start_cyl == 0 && num_blocks == img_blocks
&& ((partno == 1 && id_tag == 4) || (partno > 1 && id_tag == 2)))
if(partno > 0 && partno < 9 && start_cyl == 0 &&
num_blocks >= img_blocks - 600 && num_blocks <= img_blocks &&
((partno == 1 && id_tag == 4) || (partno > 1 && id_tag == 2)))
full_sparc_part|= (1 << (partno - 1));
} else if(strcmp(name, "PALO header version:") == 0) {

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2016.02.07.194339"
#define Xorriso_timestamP "2016.02.27.170008"

Loading…
Cancel
Save