]> Cypherpunks.ru repositories - gostls13.git/commit
path/filepath: consider \\?\c: as a volume on Windows
authorDamien Neil <dneil@google.com>
Thu, 9 Nov 2023 17:53:44 +0000 (09:53 -0800)
committerDamien Neil <dneil@google.com>
Thu, 9 Nov 2023 22:45:11 +0000 (22:45 +0000)
commiteda42f7c60adab26ed1a340414c726c4bf46b1f7
treea4afb6d22c190dfa16107db09373127c01031091
parent130baf3d42f0d7e911e9cae7e7ded8e0c6dd6919
path/filepath: consider \\?\c: as a volume on Windows

While fixing several bugs in path handling on Windows,
beginning with \\?\.

Prior to #540277, VolumeName considered the first path component
after the \\?\ prefix to be part of the volume name.
After, it considered only the \\? prefix to be the volume name.

Restore the previous behavior.

Fixes #64028

Change-Id: I6523789e61776342800bd607fb3f29d496257e68
Reviewed-on: https://go-review.googlesource.com/c/go/+/541175
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/path/filepath/path_test.go
src/path/filepath/path_windows.go