]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: support long paths without fixup on Windows 10 >= 1607
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 11 Feb 2021 18:10:10 +0000 (19:10 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 23 Mar 2021 03:49:17 +0000 (03:49 +0000)
commitb8371d495bb291f61e4fa3ac1b84116c70ac1223
tree85740ff86d1fa08d8a0614ece2c5de219627e171
parentb182ba7fabcd233a03bb8169634605a7fac6a856
runtime: support long paths without fixup on Windows 10 >= 1607

Windows 10 >= 1607 allows CreateFile and friends to use long paths if
bit 0x80 of the PEB's BitField member is set.

In time this means we'll be able to entirely drop our long path hacks,
which have never really worked right (see bugs below). Until that point,
we'll simply have things working well on recent Windows.

Updates #41734.
Updates #21782.
Updates #36375.

Change-Id: I765de6ea4859dd4e4b8ca80af7f337994734118e
Reviewed-on: https://go-review.googlesource.com/c/go/+/291291
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/export_windows_test.go
src/os/path_windows.go
src/os/path_windows_test.go
src/runtime/os_windows.go