Skip to content

os: on windows RemoveAll removing directories containing read-only files errors with unlinkat ... Access is denied, ReOpenFile error handling followup [1.25 backport] #76360

@dmitshur

Description

@dmitshur

This is a follow up for issue #75989, a Go 1.25 backport issue that was fixed in Go 1.25.4.

The fix for that issue in CL 715360 added a ReOpenFile syscall to be used by deleteatFallback. Its error handling wasn't checking for the expected value, which was fixed at tip in CL 717320, and @qmuntal suggests also backporting this to Go 1.25. This doesn't apply to Go 1.24 because the original issue was a 1.25-only regression.

A backport CL 718000 is already created, this is just a tracking issue for it.

CC @qmuntal, @neild, @golang/release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackportIssues created for requesting a backport of a change to a previous Go version.CherryPickApprovedUsed during the release process for point releases

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions