]> Cypherpunks repositories - gostls13.git/commit
io/fs: set ErrInvalid for FS.Open from SubFS when it fails ValidPath
authorAndy Pan <panjf2000@gmail.com>
Thu, 1 Feb 2024 03:28:44 +0000 (11:28 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 10 Feb 2024 02:10:17 +0000 (02:10 +0000)
commitbf821f65cfd61dcc431922eea2cb97ce0825d60c
tree913fe02779266998f2a196bd5767d0d76e3bc345
parenta18789041cb1cbb80def6f3fd05a11d353c9088b
io/fs: set ErrInvalid for FS.Open from SubFS when it fails ValidPath

Fixes #65419

Change-Id: I8f9f82ab0387d8bb39aaca4f9e60e36ee15c587d
Reviewed-on: https://go-review.googlesource.com/c/go/+/560137
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/io/fs/sub.go
src/io/fs/sub_test.go