os: Lstat from Go 1.12.x returns empty filename for C:\pagefile.sys on Windows #30883
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
There seem to be a regression in os.Lstat(path) function in Go 1.12 on Windows when path is "pagefile.sys" on C:\.
The behaviour is correct with Go 1.8.7.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, go1.12.1 is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile and run this on Windows 7 or Windows 10 amd64:
https://play.golang.org/p/ewOhJ7ErXf5
Use Go 1.12.1, then compile again with Go 1.8.7 and see the difference.
What did you expect to see?
The filename should be "pagefile.sys"
What did you see instead?
The filename is empty with Go 1.12
The text was updated successfully, but these errors were encountered: