From 6aea5f981f8966d5f6ba1e9f07523060d3367481 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 4 Dec 2008 18:06:32 +0000 Subject: [PATCH] Bug fix: Options -extract and -extract_single were enabled with -osirrox off --- libisoburn/trunk/xorriso/xorriso.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);