]> wimlib.net Git - wimlib/blobdiff - src/extract_image.c
maybe_apply_dentry(): Treat encrypted directories as streamless
[wimlib] / src / extract_image.c
index 0d83a182c6d042fa2ffec32cf898a0ec10b58bfa..e1096647ae5cd7e7346361c0d29abdc6e7deae7e 100644 (file)
@@ -567,7 +567,9 @@ maybe_apply_dentry(struct wim_dentry *dentry, void *arg)
                return 0;
 
        if (args->extract_flags & WIMLIB_EXTRACT_FLAG_NO_STREAMS)
-               if (inode_unnamed_lte_resolved(dentry->d_inode))
+               if (inode_unnamed_lte_resolved(dentry->d_inode) &&
+                   !(dentry->d_inode->i_attributes & (FILE_ATTRIBUTE_DIRECTORY |
+                                                      FILE_ATTRIBUTE_ENCRYPTED)))
                        return 0;
 
        if ((args->extract_flags & WIMLIB_EXTRACT_FLAG_VERBOSE) &&