Avoiding to hand out indigestible --modification-date with -report_el_torito

This commit is contained in:
Thomas Schmitt 2015-08-12 09:12:04 +00:00
parent f2af634472
commit 5eaf15262c
2 changed files with 15 additions and 3 deletions

View File

@ -1568,7 +1568,7 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
char **cmds, int *cmd_count, int flag) char **cmds, int *cmd_count, int flag)
{ {
int ret= 0, i, num_count, mkisofs, line_count, idx, et_idx, isohybrid= 0; 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 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 appended_as_gpt= 0, have_prep= 0, did_sysarea= 0, cared_for_apm= 0;
int cared_for_sparc= 0, have_hfsplus= 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="); sprintf(buf, "--modification-date=");
else else
sprintf(buf, "-volume_date uuid "); 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; uuid[16]= 0;
Text_shellsafe(uuid, buf, 1); Text_shellsafe(uuid, buf, 1);
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.07.31.171227" #define Xorriso_timestamP "2015.08.12.091220"