From 33ef32b3896c05bf6e6a2522b955db75e499bfad Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Lopes Date: Wed, 26 Sep 2007 07:27:16 +0000 Subject: [PATCH] Don't overwrite iso descriptors with new images on blank disc. Doing so can cause the overwrite of valid filesystem info. --- src/isofs_wrap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/isofs_wrap.c b/src/isofs_wrap.c index 54c0e746..51bb89f4 100644 --- a/src/isofs_wrap.c +++ b/src/isofs_wrap.c @@ -158,6 +158,9 @@ int isoburn_activate_session(struct burn_drive *drive) if (o->emulation_mode != 1) 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); return ret;