]> Cypherpunks repositories - gostls13.git/commit
os: handle relative symlinks correctly in Stat on windows
authorHiroshi Ioka <hirochachacha@gmail.com>
Fri, 7 Apr 2017 11:32:46 +0000 (20:32 +0900)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 10 Apr 2017 05:13:18 +0000 (05:13 +0000)
commit87bd0b2f142283ce3ee49d06074728b0ca900819
treec081cf3f439193f18d502f24e0ec31a2cc7025a9
parent7e1832d06c0dad102e18e8db0c45f5fcc979718e
os: handle relative symlinks correctly in Stat on windows

Walk relative symlinks in windows os.Stat from
symlink path instead of from current directory.

Fixes #19870

Change-Id: I0a27473d11485f073084b1f19b30c5b3a2fbc0f7
Reviewed-on: https://go-review.googlesource.com/39932
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/os_test.go
src/os/stat_windows.go