]> wimlib.net Git - wimlib/commitdiff
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 063bc0ea55fdfed72393e43cb9f89c481bd4c973..9061971548e59ef139cef05c714fe7599ec2384a 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;
 
        int ret = 0;
        mode_t type;
 
-       if (dentry_is_directory(dentry)) {
+       if (dentry->attributes & FILE_ATTRIBUTE_DIRECTORY) {
                type = S_IFDIR;
        } else {
                type = S_IFREG;
                type = S_IFDIR;
        } else {
                type = S_IFREG;