Bug fix: -as mkisofs -C attempts to read volume header of blank media

master
Thomas Schmitt 12 years ago
parent 39c3fc6da1
commit 452c9685e7
  1. 7
      libisoburn/burn_wrap.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -6,7 +6,7 @@
*/
/* libburn wrappers for libisoburn
Copyright 2007 - 2010 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007 - 2011 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
*/
@ -1723,6 +1723,7 @@ int isoburn_set_msc1(struct burn_drive *d, int adr_mode, char *adr_value,
static int max_mode_names= 4;
regex_t re;
regmatch_t match[1];
enum burn_disc_status s;
ret= isoburn_find_emulator(&o, d, 0);
if(ret<0)
@ -1783,7 +1784,9 @@ not_found:;
} else if(adr_mode==3) {
o->fabricated_msc1= adr_num;
if((flag & 1) && o->fabricated_msc1 >= 16) {
s= isoburn_disc_get_status(d);
if((flag & 1) && o->fabricated_msc1 >= 16
&& (s == BURN_DISC_FULL || s == BURN_DISC_APPENDABLE)) {
/* adr_num is possibly 16 blocks too high */
ret= isoburn_read_iso_head(d, o->fabricated_msc1, &size,volid, 1|(1<<14));
if(ret==2)

@ -1 +1 @@
#define Xorriso_timestamP "2011.02.28.190842"
#define Xorriso_timestamP "2011.03.01.145125"

Loading…
Cancel
Save