diff options
| author | bors <bors@rust-lang.org> | 2025-04-01 18:22:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-01 18:22:03 +0000 |
| commit | e2014e876e3efaa69bf51c19579adb16c3df5f81 (patch) | |
| tree | 68a05a544539e3dfb957df2aee86d6eb13d51fdd /library/std/src | |
| parent | 0b4a81a4ef637117b365c3c51a5326f1c4a90ded (diff) | |
| parent | 8524a7c4b7faab823f7e03d012b365bb05b82654 (diff) | |
| download | rust-e2014e876e3efaa69bf51c19579adb16c3df5f81.tar.gz rust-e2014e876e3efaa69bf51c19579adb16c3df5f81.zip | |
Auto merge of #138928 - ChrisDenton:fix-uwp, r=tgross35
Fix UWP reparse point check Fixes #138921
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/fs/windows.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/fs/windows.rs b/library/std/src/sys/fs/windows.rs index 06bba019393..15727c99683 100644 --- a/library/std/src/sys/fs/windows.rs +++ b/library/std/src/sys/fs/windows.rs @@ -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(), |
