diff --git a/ChangeLog b/ChangeLog index bc19d34..68fce85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 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 diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index eb0041a..fa94348 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -501,13 +501,23 @@ void ecma119_set_voldescr_times(IsoImageWriter *writer, else 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, 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, t->always_gmt); + } else { + for(i = 0; i < 16; i++) + vol->vol_effective_time[i] = '0'; + vol->vol_effective_time[16] = 0; + } } /**