]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/ntfs3: Fix directory element type detection
authorGabriel Marcano <gabemarcano@yahoo.com>
Wed, 13 Sep 2023 04:50:32 +0000 (21:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:46 +0000 (17:26 +0100)
commit27a0bed1285e4d1497b8ead28657b681b9796c60
tree43ce240ebbc88ccc1fcaabe053bedd6a83991f77
parent94524980ee7548d000865ae3bc1b74426ce8db30
fs/ntfs3: Fix directory element type detection

[ Upstream commit 85a4780dc96ed9dd643bbadf236552b3320fae26 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/dir.c