]> Cypherpunks repositories - gostls13.git/commit
syscall: support more flags when opening directories on Windows
authorqmuntal <quimmuntal@gmail.com>
Thu, 10 Oct 2024 09:56:56 +0000 (11:56 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 10 Oct 2024 20:07:10 +0000 (20:07 +0000)
commitd20a4c2403edf07f05eb024e3af568782303ce97
treef71c084ec8c01fb7aa17f3485f829c882bb362f5
parent9cc737d482582cca5ba44b2320fb4e48edee9cd6
syscall: support more flags when opening directories on Windows

syscall.Open was artificially limiting the flags that were eligible
to open directories on Windows. This change extend the cases where we
pass FILE_FLAG_BACKUP_SEMANTICS to all flag combinations allowed by
Unix.

Change-Id: Ia7c083bcba070f92ea61c6d67487bdefd0d99546
Reviewed-on: https://go-review.googlesource.com/c/go/+/619295
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/syscall/syscall_windows.go
src/syscall/syscall_windows_test.go