Bug fix: Options -extract and -extract_single were enabled with -osirrox off

This commit is contained in:
Thomas Schmitt 2008-12-04 18:06:32 +00:00
parent 8cf5f98795
commit 6aea5f981f

View File

@ -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);