]> Cypherpunks repositories - gostls13.git/commit
path/filepath: fix evaluation of symlinks to paths under /tmp on macOS
authormatsuyoshi30 <sfbgwm30@gmail.com>
Wed, 18 Jan 2023 15:45:18 +0000 (00:45 +0900)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 22:42:39 +0000 (22:42 +0000)
commit0518e33f6c0c3a9f6ce1f800ca4b7fe5f3a1b7a5
tree6c73cd4bfc388818c97729b31f7a8f848f890b66
parent27b6ace2b4b068905eb2963e656e3cefcba32222
path/filepath: fix evaluation of symlinks to paths under /tmp on macOS

For symlinks created from symlinks under the root directory created
as the relative path (e.g., symbolic links under /tmp), we update vol and volLen.

Fixes #57905

Change-Id: I45affd1db3b93109de51bf19b181f3cdba061109
Reviewed-on: https://go-review.googlesource.com/c/go/+/461761
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/path/filepath/path_test.go
src/path/filepath/symlink.go