Skip to content
Commit 1c18dca9 authored by Gabriel Marcano's avatar Gabriel Marcano Committed by Dom Cobley
Browse files

fs/ntfs3: Fix directory element type detection



[ Upstream commit 85a4780d ]

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: default avatarGabriel Marcano <gabemarcano@yahoo.com>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a7272dca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment