From 78ec46d87ce3e8d9cc4afdc03109c0e673c3dde8 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 17 Jan 2014 01:47:53 -0600 Subject: [PATCH 1/1] 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. --- src/extract.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.43.0