From: Eric Biggers Date: Fri, 24 Aug 2012 04:22:36 +0000 (-0500) Subject: Extract NTFS junction points correctly X-Git-Tag: v1.0.0~90 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=81be60d782a4b4b8ae2e40141fc42b6e0e2d2706;hp=de2db344b0d8a48b52c4cfaf0dbf35da9ffc6678;ds=sidebyside Extract NTFS junction points correctly They need to be made as directories not regular files. --- 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;