1
Fork 0

Fix UWP reparse point check

This commit is contained in:
Chris Denton 2025-03-25 10:31:05 +00:00
parent 7d49ae9731
commit 8524a7c4b7
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -547,7 +547,7 @@ impl File {
))?;
attr.file_size = info.AllocationSize as u64;
attr.number_of_links = Some(info.NumberOfLinks);
if attr.file_type().is_reparse_point() {
if attr.attributes & c::FILE_ATTRIBUTE_REPARSE_POINT != 0 {
let mut attr_tag: c::FILE_ATTRIBUTE_TAG_INFO = mem::zeroed();
cvt(c::GetFileInformationByHandleEx(
self.handle.as_raw_handle(),