X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-apply.c;h=9061971548e59ef139cef05c714fe7599ec2384a;hp=063bc0ea55fdfed72393e43cb9f89c481bd4c973;hb=81be60d782a4b4b8ae2e40141fc42b6e0e2d2706;hpb=de2db344b0d8a48b52c4cfaf0dbf35da9ffc6678 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;