about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-20 11:29:38 +0530
committerGitHub <noreply@github.com>2022-07-20 11:29:38 +0530
commit80395679cb123099ef53f94b9d514729720e136c (patch)
treed55f9b45f794a7097f359cd96e1d7fae7e299072 /compiler/rustc_codegen_llvm/src/common.rs
parent97c9f16a45c0ebda9facf38180549f896a81cf32 (diff)
parenteee8ca9a44e89d56ed63cf5a76de64cc6cb23c23 (diff)
downloadrust-80395679cb123099ef53f94b9d514729720e136c.tar.gz
rust-80395679cb123099ef53f94b9d514729720e136c.zip
Rollup merge of #98916 - ChrisDenton:hiberfil.sys, r=thomcc
Windows: Use `FindFirstFileW` for getting the metadata of locked system files

Fixes #96980

Usually opening a file handle with access set to metadata only will always succeed, even if the file is locked. However some special system files, such as `C:\hiberfil.sys`, are locked by the system in a way that denies even that. So as a fallback we try reading the cached metadata from the directory.

Note that the test is a bit iffy. I don't know if `hiberfil.sys` actually exists in the CI.

r? rust-lang/libs
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions