Added code to xorriso for repairing "_" in all three PVD id file names

This commit is contained in:
Thomas Schmitt 2009-10-05 19:01:38 +00:00
parent 256091d944
commit 45b95cc158
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.10.05.183619"
#define Xorriso_timestamP "2009.10.05.190215"

View File

@ -1233,6 +1233,22 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, int flag)
Sfile_str(xorriso->publisher,
(char *) un0(iso_image_get_publisher_id(volset)), 0);
/* <<< can be removed as soon as libisofs-0.6.24 is mandatory
*/
if(strcmp(un0(iso_image_get_copyright_file_id(volset)), "_") == 0 &&
strcmp(un0(iso_image_get_abstract_file_id(volset)), "_") == 0 &&
strcmp(un0(iso_image_get_biblio_file_id(volset)), "_") == 0) {
/* This is bug output from libisofs <= 0.6.23 . The texts mean file names
and should have been empty to indicate that there are no such files.
It is obvious that not all three roles can be fulfilled by one file "_"
so that one cannot spoil anything by assuming them empty now.
Modern versions of libisofs are supposed to do this themselves.
*/
iso_image_set_copyright_file_id(volset, "");
iso_image_set_abstract_file_id(volset, "");
iso_image_set_biblio_file_id(volset, "");
}
if(xorriso->out_drive_handle != NULL &&
xorriso->out_drive_handle != xorriso->in_drive_handle) {
ret= Xorriso_get_drive_handles(xorriso, &out_dinfo, &out_drive,