[all-commits] [llvm/llvm-project] cb7690: [Support] Handle delete_pending case for Windows f...
Jeremy Day via All-commits
all-commits at lists.llvm.org
Mon Jun 3 10:23:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb7690af09b95bb944baf1b5a9ffb18f86c12130
https://github.com/llvm/llvm-project/commit/cb7690af09b95bb944baf1b5a9ffb18f86c12130
Author: Jeremy Day <jeremy at thebrowser.company>
Date: 2024-06-03 (Mon, 03 Jun 2024)
Changed paths:
M llvm/include/llvm/Support/Errc.h
M llvm/include/llvm/Support/WindowsError.h
M llvm/lib/Support/CMakeLists.txt
M llvm/lib/Support/ErrorHandling.cpp
M llvm/lib/Support/Windows/Path.inc
Log Message:
-----------
[Support] Handle delete_pending case for Windows fs::status (#90655)
If a delete is pending on the file queried for status, a misleading
`permission_denied` error code will be returned (this is the correct
mapping of the error set by GetFileAttributesW). By querying the
underlying NTSTATUS code via ntdll's RtlGetLastNtStatus, this case can
be disambiguated. If this underlying error code indicates a pending
delete, fs::status will return a new `pending_delete` error code to be
handled by callers
Fixes #89137
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list