]> Cypherpunks repositories - gostls13.git/commit
os: openDir: add O_DIRECTORY flag for unix
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 29 May 2024 00:23:15 +0000 (17:23 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 22 Aug 2024 15:01:14 +0000 (15:01 +0000)
commit400e6b68b55e20f49f10aaf69df5e3b298b02ad7
tree9de3ca7ff07fd09a35ff1eccb90561c638f9afaf
parent4f18477db6d6c67abb9dfbf0c9077fecfd7e5ba8
os: openDir: add O_DIRECTORY flag for unix

With this, ReadDir will fail a tad earlier (on open rather than on
readdir syscall). This should be the only effect of this change.

Change-Id: Icf2870f47ea6c19aad29670e78ba9bfcc13c0ac3
Reviewed-on: https://go-review.googlesource.com/c/go/+/588915
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/os/file_unix.go