diff options
| author | Damien Neil <dneil@google.com> | 2022-11-14 10:21:51 -0800 |
|---|---|---|
| committer | Damien Neil <dneil@google.com> | 2022-11-14 19:44:44 +0000 |
| commit | 24fc64028c0faa7fcbdae2bf2a2ded825713c982 (patch) | |
| tree | ec0ae1582310fca03a5b05e4e6132acbcaa8638c /test/codegen | |
| parent | 6234e467e50b35e967b9a91f8b6fa01fa6691bfa (diff) | |
| download | go-24fc64028c0faa7fcbdae2bf2a2ded825713c982.tar.xz | |
os: don't request read access from CreateFile in Stat
CL 448897 changed os.Stat to request GENERIC_READ access when using
CreateFile to examine a file. This is unnecessary; access flags of 0
will permit examining file metadata even if the file isn't readable.
Revert to the old behavior here.
For #56217
Change-Id: I09220b3bbee304bd89f4a94ec9b0af42042b7773
Reviewed-on: https://go-review.googlesource.com/c/go/+/450296
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
