Change information
Commit message:
os: support deleting inaccessible files in RemoveAll
windows: retry file open with DELETE access after access denied
Additional access rights when opening files, including SYNCHRONIZE,
break deletion when the caller has FILE_DELETE_CHILD on the parent
directory but not the file. Retry with DELETE only restores correct
Windows semantics.
Fixes #77402
Change-Id: Ie53bc6f1673de1a8af4dcfb7496daf99e71098cb
GitHub-Last-Rev: 0ad635cf1a13c0242e3b1922cf47a8c594dd7215
GitHub-Pull-Request: golang/go#77403
Files:
- M src/internal/syscall/windows/at_windows.go
- M src/internal/syscall/windows/at_windows_test.go
- M src/internal/syscall/windows/syscall_windows.go
- M src/internal/syscall/windows/types_windows.go
- M src/internal/syscall/windows/zsyscall_windows.go
Change size: M
Delta: 5 files changed, 242 insertions(+), 3 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Michael Knyszek, +1 by Michael Pratt, +2 by Quim Muntal
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI