https://bugs.winehq.org/show_bug.cgi?id=50771
--- Comment #8 from Joel Holdsworth joel@airwebreathe.org.uk --- This patch set was originally submitted as a fix for this bug:
https://gitlab.winehq.org/jhol/wine/-/commits/lock-fix-3
The patch set adds support for modifying the file attributes of read-only files, by implementing a temporary chmod. However, reviewers were not happy with this design.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1895
The Msys2 and Cygwin unlink() implementation have an additional code path that can use NtSetInformationFile with FileDispositionInformationEx and FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE instead.
A patch set to implement support for these features has been submitted here:
https://gitlab.winehq.org/wine/wine/-/merge_requests/3073