-
Notifications
You must be signed in to change notification settings - Fork 18.8k
os: support deleting inaccessible files in RemoveAll #77403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os: support deleting inaccessible files in RemoveAll #77403
Conversation
|
This PR (HEAD: ae1e7fa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michal Pristas: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michal Pristas: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
This PR (HEAD: 912d5d2) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Damien Neil: Patch Set 4: Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-02-02T17:18:43Z","revision":"7c722ba0bd37c3627107d74b843bee6fd09721a2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Damien Neil: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/gotip-windows-amd64 has failed with summary (view all results):
To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
This PR (HEAD: 6e975ca) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Michal Pristas: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michal Pristas: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michal Pristas: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
This PR (HEAD: 92db103) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Quim Muntal: Patch Set 6: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
This PR (HEAD: efd42c2) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Michal Pristas: Patch Set 6: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 7: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michal Pristas: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
This PR (HEAD: 0ad635c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/741040. Important tips:
|
|
Message from Michal Pristas: Patch Set 7: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 8: Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-02-04T09:39:07Z","revision":"10b3cbdef061e0779ca45cd7c0d46b8fbad85373"} Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Quim Muntal: Patch Set 8: -Commit-Queue (Posted by golang-scoped@luci-project-accounts.iam.gserviceaccount.com on behalf of quimmuntal@gmail.com) Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 8: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Go LUCI: Patch Set 8: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
|
Message from Michael Knyszek: Patch Set 8: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/741040. |
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: 0ad635c GitHub-Pull-Request: #77403 Reviewed-on: https://go-review.googlesource.com/c/go/+/741040 Reviewed-by: Quim Muntal <quimmuntal@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
|
This PR is being closed because golang.org/cl/741040 has been merged. |
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