* Bug fix: Unspecified Expiration Time and Effective Time of ISO volume was

represented by 0-bytes rather than ASCII '0' digits.
This commit is contained in:
Thomas Schmitt 2013-04-10 13:55:20 +02:00
parent 1a2e1c767e
commit eb6503a8ad
2 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,7 @@
bzr branch lp:libisofs/for-libisoburn (to become libisofs-1.3.0.tar.gz) bzr branch lp:libisofs/for-libisoburn (to become libisofs-1.3.0.tar.gz)
=============================================================================== ===============================================================================
- no novelties yet - * Bug fix: Unspecified Expiration Time and Effective Time of ISO volume was
represented by 0-bytes rather than ASCII '0' digits.
libisofs-1.2.8.tar.gz Mon Mar 18 2013 libisofs-1.2.8.tar.gz Mon Mar 18 2013

View File

@ -501,13 +501,23 @@ void ecma119_set_voldescr_times(IsoImageWriter *writer,
else else
iso_datetime_17(vol->vol_modification_time, t->now, t->always_gmt); iso_datetime_17(vol->vol_modification_time, t->now, t->always_gmt);
if (t->vol_expiration_time > 0) if (t->vol_expiration_time > 0) {
iso_datetime_17(vol->vol_expiration_time, t->vol_expiration_time, iso_datetime_17(vol->vol_expiration_time, t->vol_expiration_time,
t->always_gmt); t->always_gmt);
} else {
for(i = 0; i < 16; i++)
vol->vol_expiration_time[i] = '0';
vol->vol_expiration_time[16] = 0;
}
if (t->vol_effective_time > 0) if (t->vol_effective_time > 0) {
iso_datetime_17(vol->vol_effective_time, t->vol_effective_time, iso_datetime_17(vol->vol_effective_time, t->vol_effective_time,
t->always_gmt); t->always_gmt);
} else {
for(i = 0; i < 16; i++)
vol->vol_effective_time[i] = '0';
vol->vol_effective_time[16] = 0;
}
} }
/** /**