]> Cypherpunks repositories - gostls13.git/commit
path/filepath: rewrite walkSymlinks
authorIan Lance Taylor <iant@golang.org>
Fri, 29 Jun 2018 17:39:44 +0000 (10:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 13 Sep 2018 17:47:52 +0000 (17:47 +0000)
commit7d27e87d35b4c8948a498711cb34c1f73917535b
tree683c253d8465ae89a28b19c90b4fb2cc215fc803
parent8c610aa633167aef27964e314dda35a87d3da58b
path/filepath: rewrite walkSymlinks

Rather than try to work around Clean and Join on intermediate steps,
which can remove ".." components unexpectedly, just do everything in
walkSymlinks. Use a single loop over path components.

Fixes #23444

Change-Id: I4f15e50d0df32349cc4fd55e3d224ec9ab064379
Reviewed-on: https://go-review.googlesource.com/121676
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/path/filepath/path_test.go
src/path/filepath/symlink.go