Skip to content

Commit e2014e8

Browse files
committed
Auto merge of #138928 - ChrisDenton:fix-uwp, r=tgross35
Fix UWP reparse point check Fixes #138921
2 parents 0b4a81a + 8524a7c commit e2014e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/fs/windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ impl File {
547547
))?;
548548
attr.file_size = info.AllocationSize as u64;
549549
attr.number_of_links = Some(info.NumberOfLinks);
550-
if attr.file_type().is_reparse_point() {
550+
if attr.attributes & c::FILE_ATTRIBUTE_REPARSE_POINT != 0 {
551551
let mut attr_tag: c::FILE_ATTRIBUTE_TAG_INFO = mem::zeroed();
552552
cvt(c::GetFileInformationByHandleEx(
553553
self.handle.as_raw_handle(),

0 commit comments

Comments
 (0)