From 81be60d782a4b4b8ae2e40141fc42b6e0e2d2706 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 23 Aug 2012 23:22:36 -0500 Subject: [PATCH 1/1] Extract NTFS junction points correctly They need to be made as directories not regular files. --- src/ntfs-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs-apply.c b/src/ntfs-apply.c index 063bc0ea..90619715 100644 --- a/src/ntfs-apply.c +++ b/src/ntfs-apply.c @@ -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; -- 2.43.0