]> Cypherpunks repositories - gostls13.git/commit
syscall: only remove write data access when O_APPEND is set on Windows
authorqmuntal <quimmuntal@gmail.com>
Wed, 16 Oct 2024 14:38:37 +0000 (16:38 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Wed, 23 Oct 2024 17:23:13 +0000 (17:23 +0000)
commit0b4168f6ab570dcd5b7b002386dd9495c8ad1a2f
treeef0300502c3b4cc4e01d88085ced40b4bcaff236
parent87c03bdf62bfece1d74039e4e07c2aa277149b17
syscall: only remove write data access when O_APPEND is set on Windows

There is no need to remove all write accesses when O_APPEND is set,
only the FILE_WRITE_DATA access. This will allow files opened with
O_APPEND and O_WRONLY to be have their attributes and ACLs modified.

Change-Id: I6fe3b25e87b141a9eb30805f395fec31242fd35d
Reviewed-on: https://go-review.googlesource.com/c/go/+/620615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/os/os_test.go
src/syscall/syscall_windows.go
src/syscall/types_windows.go