Extract NTFS junction points correctly
authorEric Biggers <ebiggers3@gmail.com>
Fri, 24 Aug 2012 04:22:36 +0000 (23:22 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 24 Aug 2012 04:22:36 +0000 (23:22 -0500)
They need to be made as directories not regular files.

src/ntfs-apply.c

index 063bc0e..9061971 100644 (file)
@@ -270,7 +270,7 @@ static int do_wim_apply_dentry_ntfs(struct dentry *dentry, ntfs_inode *dir_ni,
        int ret = 0;
        mode_t type;
 
-       if (dentry_is_directory(dentry)) {
+       if (dentry->attributes & FILE_ATTRIBUTE_DIRECTORY) {
                type = S_IFDIR;
        } else {
                type = S_IFREG;