Avoiding to hand out indigestible --modification-date with -report_el_torito
This commit is contained in:
parent
f2af634472
commit
5eaf15262c
@ -1568,7 +1568,7 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
|
||||
char **cmds, int *cmd_count, int flag)
|
||||
{
|
||||
int ret= 0, i, num_count, mkisofs, line_count, idx, et_idx, isohybrid= 0;
|
||||
int ptype, gpt_idx;
|
||||
int ptype, gpt_idx, j, pad;
|
||||
int efi_boot_part= 0, full_sparc_part= 0, have_sparc_part= 0;
|
||||
int appended_as_gpt= 0, have_prep= 0, did_sysarea= 0, cared_for_apm= 0;
|
||||
int cared_for_sparc= 0, have_hfsplus= 0;
|
||||
@ -1704,7 +1704,19 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
|
||||
sprintf(buf, "--modification-date=");
|
||||
else
|
||||
sprintf(buf, "-volume_date uuid ");
|
||||
strncpy(uuid, crt, 16);
|
||||
pad= 0;
|
||||
for(j= 0; j < 16; j++) {
|
||||
if(pad) {
|
||||
uuid[j]= '0';
|
||||
} else if(crt[j] == 0) {
|
||||
pad= 1;
|
||||
uuid[j]= '0';
|
||||
} else if(crt[j] < '0' || crt[j] > '9') {
|
||||
uuid[j]= '0';
|
||||
} else {
|
||||
uuid[j]= crt[j];
|
||||
}
|
||||
}
|
||||
uuid[16]= 0;
|
||||
Text_shellsafe(uuid, buf, 1);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.07.31.171227"
|
||||
#define Xorriso_timestamP "2015.08.12.091220"
|
||||
|
Loading…
Reference in New Issue
Block a user