]> wimlib.net Git - wimlib/blobdiff - src/ntfs-apply.c
Fixes
[wimlib] / src / ntfs-apply.c
index 5e36469f4b41ac75a64688ca5cbafbd7bf76377e..1a97e72c46aefe8e2d63d0ed2a52dec033b4c0eb 100644 (file)
@@ -378,9 +378,7 @@ static int preapply_dentry_with_dos_name(struct dentry *dentry,
                }
        }
        /* If there's a dentry with a DOS name, extract it first */
-       if (dentry_with_dos_name
-           && !dentry_with_dos_name->inode->extracted_file)
-       {
+       if (dentry_with_dos_name && !dentry_is_extracted(dentry)) {
                char *p;
                const char *dir_name;
                char orig;
@@ -431,6 +429,7 @@ static int do_wim_apply_dentry_ntfs(struct dentry *dentry, ntfs_inode *dir_ni,
        bool is_hardlink = false;
        ntfs_volume *vol = dir_ni->vol;
        struct inode *inode = dentry->inode;
+       dentry->is_extracted = true;
 
        if (inode->attributes & FILE_ATTRIBUTE_DIRECTORY) {
                type = S_IFDIR;