Silenced a FAILURE message with -acl if no image is loaded

master
Thomas Schmitt 14 years ago
parent 5e1adef785
commit 86b5ffda4f

@ -1 +1 @@
#define Xorriso_timestamP "2009.01.23.172652"
#define Xorriso_timestamP "2009.01.23.172757"

@ -1706,11 +1706,14 @@ int Xorriso__read_pacifier(IsoImage *image, IsoFileSource *filesource)
return(1);
}
/* @param flag bit0=silently return 0 if no volume/image is present
*/
int Xorriso_get_volume(struct XorrisO *xorriso, IsoImage **volume,
int flag)
{
if(xorriso->in_volset_handle==NULL) {
if(flag & 1)
return(0);
Xorriso_process_msg_queues(xorriso,0);
sprintf(xorriso->info_text,"No ISO image present.");
if(xorriso->indev[0]==0 && xorriso->outdev[0]==0)
@ -8871,7 +8874,7 @@ int Xorriso_set_ignore_aclea(struct XorrisO *xorriso, int flag)
int ret;
IsoImage *volume;
ret= Xorriso_get_volume(xorriso, &volume, 0);
ret= Xorriso_get_volume(xorriso, &volume, 1);
if(ret<=0)
return(ret);
iso_image_set_ignore_aclea(volume,

Loading…
Cancel
Save