]> Cypherpunks repositories - gostls13.git/commit
os: don't normalize volumes to drive letters in os.Readlink
authorqmuntal <quimmuntal@gmail.com>
Wed, 28 Feb 2024 15:07:27 +0000 (16:07 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 4 Mar 2024 20:38:54 +0000 (20:38 +0000)
commitb09ac10badb169828240a3b0bfaa4a428eaca969
tree254dbf7873244b6989775b506b2d57748ad3c52f
parent2b22fc10459dff0fb4b3e5b08bc14ffb349aa4dd
os: don't normalize volumes to drive letters in os.Readlink

This CL updates os.Readlink so it no longer tries to normalize volumes
to drive letters, which was not always even possible.

This behavior is controlled by the `winreadlinkvolume` setting.
For Go 1.23, it defaults to `winreadlinkvolume=1`.
Previous versions default to `winreadlinkvolume=0`.

Fixes #63703.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-arm64
Change-Id: Icd6fabbc8f0b78e23a82eef8db89940e89e9222d
Reviewed-on: https://go-review.googlesource.com/c/go/+/567735
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
doc/godebug.md
doc/next/6-stdlib/99-minor/os/63703.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/path/filepath/63703.md
src/internal/godebugs/table.go
src/os/file_windows.go
src/os/os_windows_test.go
src/path/filepath/path_windows_test.go
src/runtime/metrics/doc.go