]> wimlib.net Git - wimlib/blobdiff - src/extract.c
Allow configurable case sensitivity
[wimlib] / src / extract.c
index aba92865ba9c3f2bee00175b4a8ec2cf8eff26d6..4204acabd47e1bf94cf97035efb46ff53446151e 100644 (file)
@@ -2274,7 +2274,7 @@ extract_tree(WIMStruct *wim, const tchar *wim_source_path, const tchar *target,
        /* Translate the path to extract into the corresponding
         * `struct wim_dentry', which will be the root of the
         * "dentry tree" to extract.  */
-       root = get_dentry(wim, wim_source_path);
+       root = get_dentry(wim, wim_source_path, WIMLIB_CASE_PLATFORM_DEFAULT);
        if (!root) {
                ERROR("Path \"%"TS"\" does not exist in WIM image %d",
                      wim_source_path, wim->current_image);
@@ -3090,7 +3090,7 @@ wimlib_extract_paths(WIMStruct *wim,
                else
                        wildcard_flags |= WILDCARD_FLAG_WARN_IF_NO_MATCH;
 
-               if (extract_flags & WIMLIB_EXTRACT_FLAG_CASE_INSENSITIVE_GLOB)
+               if (default_ignore_case)
                        wildcard_flags |= WILDCARD_FLAG_CASE_INSENSITIVE;
 
                ret = expand_wildcard_wim_paths(wim, paths, num_paths,