]> Cypherpunks repositories - gostls13.git/commit
os: treat "nul" as DevNull file on windows
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 25 Mar 2018 00:08:12 +0000 (11:08 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 25 Mar 2018 08:33:21 +0000 (08:33 +0000)
commit48c4eeeed7a18da80b77ebee318f87786a63ae1c
tree19f1df3fb160ae34c0de0a4a3a65d2052ca253be
parent5ce92d0384ecc8aa0247a9c280acbb6a65e4585e
os: treat "nul" as DevNull file on windows

Also add more tests to test both nul and NUL on windows.

Fixes #24482

Change-Id: I3dfe68ec8de7f90ca869c1096dde0054df3c5cf6
Reviewed-on: https://go-review.googlesource.com/102457
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/os_test.go
src/os/os_windows_test.go
src/os/stat_windows.go