]> Cypherpunks repositories - gostls13.git/commit
path/filepath: normalize output of EvalSymlinks on windows
authorHiroshi Ioka <hirochachacha@gmail.com>
Thu, 17 Mar 2016 08:24:19 +0000 (17:24 +0900)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 5 Apr 2016 00:39:25 +0000 (00:39 +0000)
commitc4dda7e5a830e86b597d34483fd7787723b34f2f
tree4eaa52b6498fef232876525319f58b3031ede2bf
parent9db7ef561462606085759a2f8a93b7224fdfd2fc
path/filepath: normalize output of EvalSymlinks on windows

Current implementation uses GetShortPathName and GetLongPathName
to get a normalized path. That approach sometimes fails because
user can disable short path name anytime. This CL provides
an alternative approach suggested by MSDN.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa364989(v=vs.85).aspx

Fixes #13980

Change-Id: Icf4afe4c9c4b507fc110c1483bf8db2c3f606b0a
Reviewed-on: https://go-review.googlesource.com/20860
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/path/filepath/export_windows_test.go [new file with mode: 0644]
src/path/filepath/path_windows_test.go
src/path/filepath/symlink_windows.go