]> Cypherpunks repositories - gostls13.git/commit
testing/fstest: MapFS: set perm 0555 on synthetized dirs
authorOlivier Mengué <olivier.mengue@gmail.com>
Sun, 8 Oct 2023 15:51:00 +0000 (17:51 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 11 Oct 2023 20:20:55 +0000 (20:20 +0000)
commit09aada24aa156e0f754688487088badd969caad8
treeee0a7f490703fbfc0c51a287f7119a73ec35d7e5
parent7241fee9b06da568251617ce3a715fae3e9f2881
testing/fstest: MapFS: set perm 0555 on synthetized dirs

As MapFS ignores filemodes and always grant read and traverse access on
directories, let's make synthetized directory entries to expose filemode
0555 instead of 0000.
Fixes #63468.

Change-Id: I5d64a6bf2f2ac6082ca5dde55b3062669fb50b8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/534075
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/testing/fstest/mapfs.go
src/testing/fstest/mapfs_test.go