On Wed Apr 26 12:34:16 2023 +0000, Alexandre Julliard wrote:
As Zeb said, temporarily changing file modes is ugly and fragile, we don't want to go in that direction. Also there doesn't seem to be much evidence that it would be necessary.
Fair enough. So do you believe we should remove the usage of POSIX file-access flags to represent `FILE_ATTRIBUTE_READONLY` entirely? I don't see how we can open an fd of a non-user-writable file that allows filesystem extended attribute write access, unless we temporarily mark the file as writable.