New command -toc_info_type

This commit is contained in:
2024-06-28 16:42:28 +02:00
parent 2306175432
commit 7f1abc4174
14 changed files with 304 additions and 89 deletions

View File

@ -325,8 +325,14 @@ int Xorriso_pvd_info(struct XorrisO *xorriso, int flag)
Xorriso_result(xorriso,0);
ret= iso_image_get_pvd_times(image, &crt, &mdt, &ext, &eft);
if(ret != ISO_SUCCESS)
if(ret != ISO_SUCCESS) {
crt= mdt= ext= eft= " "; /* Need 17 bytes. Last byte 0. */
} else {
Untimezone_ecma119_17byte(crt, 0);
Untimezone_ecma119_17byte(mdt, 0);
Untimezone_ecma119_17byte(ext, 0);
Untimezone_ecma119_17byte(eft, 0);
}
Xorriso_report_pvd_time(xorriso, "Creation Time:", crt, 0);
Xorriso_report_pvd_time(xorriso, "Modif. Time :", mdt, 0);
Xorriso_report_pvd_time(xorriso, "Expir. Time :", ext, 0);