From: Eric Biggers Date: Fri, 17 Jan 2014 07:47:53 +0000 (-0600) Subject: do_wimlib_extract_paths(): Adjust condition to make target dir X-Git-Tag: v1.6.1~11 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=78ec46d87ce3e8d9cc4afdc03109c0e673c3dde8 do_wimlib_extract_paths(): Adjust condition to make target dir Don't make the target directory if called from wimlib_extract_files(), since in that case the tree itself will be extracted to the target. --- diff --git a/src/extract.c b/src/extract.c index 311ed97d..2b347029 100644 --- a/src/extract.c +++ b/src/extract.c @@ -2634,7 +2634,8 @@ do_wimlib_extract_paths(WIMStruct *wim, return ret; if ((extract_flags & (WIMLIB_EXTRACT_FLAG_NTFS | - WIMLIB_EXTRACT_FLAG_NO_PRESERVE_DIR_STRUCTURE)) == + WIMLIB_EXTRACT_FLAG_NO_PRESERVE_DIR_STRUCTURE | + WIMLIB_EXTRACT_FLAG_FILEMODE)) == (WIMLIB_EXTRACT_FLAG_NO_PRESERVE_DIR_STRUCTURE)) { ret = mkdir_if_needed(target);