diff --git a/libisoburn/trunk/xorriso/xorriso.c b/libisoburn/trunk/xorriso/xorriso.c index ace7caff..4302f478 100644 --- a/libisoburn/trunk/xorriso/xorriso.c +++ b/libisoburn/trunk/xorriso/xorriso.c @@ -11935,6 +11935,12 @@ int Xorriso_option_extract(struct XorrisO *xorriso, char *iso_path, int ret; char eff_origin[SfileadrL], eff_dest[SfileadrL], *ipth; + if(!xorriso->allow_restore) { + sprintf(xorriso->info_text, + "-extract: image-to-disk copies are not enabled by option -osirrox"); + Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); + return(0); + } if(!(flag&2)) Xorriso_pacifier_reset(xorriso, 0);