]> Cypherpunks repositories - gostls13.git/commit
os: adjust error in Stat on windows
authorHiroshi Ioka <hirochachacha@gmail.com>
Tue, 11 Apr 2017 00:54:08 +0000 (09:54 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 11 Apr 2017 04:09:09 +0000 (04:09 +0000)
commit5a8eae6d47d768a8900ddf7a6a4d20db53ae519d
tree3adb7ea4d3f7559d7cf35152d3a4895be00a15c7
parente367ba9eaea80917c877709da365ff8f13cc60bd
os: adjust error in Stat on windows

Current code could return a non-nil os.FileInfo even if there is an error.
This is a bit incompatible with Stat on other OSes.

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