Don't overwrite iso descriptors with new images on blank disc.

Doing so can cause the overwrite of valid filesystem info.
This commit is contained in:
Vreixo Formoso Lopes 2007-09-26 07:27:16 +00:00
parent 2d974598a7
commit 33ef32b389

View File

@ -158,6 +158,9 @@ int isoburn_activate_session(struct burn_drive *drive)
if (o->emulation_mode != 1) if (o->emulation_mode != 1)
return 1; /* don't need to activate session */ return 1; /* don't need to activate session */
if (o->fabricated_disc_status != BURN_DISC_APPENDABLE)
return 1;
ret = burn_random_access_write(drive, 0, (char*)o->target_iso_head, 64*2048, 0); ret = burn_random_access_write(drive, 0, (char*)o->target_iso_head, 64*2048, 0);
return ret; return ret;