]> Cypherpunks repositories - gostls13.git/commit
path/filepath: don't discard .. in EvalSymlinks
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 20:31:18 +0000 (12:31 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Mar 2019 01:01:11 +0000 (01:01 +0000)
commit294edb272d5d145665bdf8b4254609eae0363a8d
tree42063a38e44ef74135b13df1c2650249f6505b72
parent6b04550820ac70283d856ceb8cb84d3883862c72
path/filepath: don't discard .. in EvalSymlinks

EvalSymlinks was mishandling cases like "/x/../../y" or "../../../x"
where there is an extra ".." that goes past the start of the path.

Fixes #30520

Change-Id: I07525575f83009032fa1a99aa270c8d42007d276
Reviewed-on: https://go-review.googlesource.com/c/go/+/164762
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/path/filepath/path_test.go
src/path/filepath/symlink.go