fs/ntfs3: Fix directory element type detection
authorGabriel Marcano <gabemarcano@yahoo.com>
Wed, 13 Sep 2023 04:50:32 +0000 (21:50 -0700)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 28 Sep 2023 12:04:06 +0000 (15:04 +0300)
commit85a4780dc96ed9dd643bbadf236552b3320fae26
tree2d2d21d82fd6dc606f2db7a776aeb397b92613de
parent1f9b94af923c88539426ed811ae7e9543834a5c5
fs/ntfs3: Fix directory element type detection

Calling stat() from userspace correctly identified junctions in an NTFS
partition as symlinks, but using readdir() and iterating through the
directory containing the same junction did not identify the junction
as a symlink.

When emitting directory contents, check FILE_ATTRIBUTE_REPARSE_POINT
attribute to detect junctions and report them as links.

Signed-off-by: Gabriel Marcano <gabemarcano@yahoo.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/dir.c