]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.7] path/filepath: handle ".." in normalizing a path on Windows
authorHiroshi Ioka <hirochachacha@gmail.com>
Fri, 19 Aug 2016 00:37:19 +0000 (09:37 +0900)
committerChris Broadfoot <cbro@golang.org>
Wed, 7 Sep 2016 17:47:27 +0000 (17:47 +0000)
commit3129c67db76bc8ee13a1edc38a6c25f9eddcbc6c
tree609cfc393a587fb1d2ba06aea29c6225c3a28580
parentbb8706890bc5bab01894f7faf382b15364635d29
[release-branch.go1.7] path/filepath: handle ".." in normalizing a path on Windows

Current code assumes there are not ".." in the Clean(path).
That's not true. Clean doesn't handle leading "..", so we need to stop
normalization if we see "..".

Fixes #16793

Change-Id: I0a7901bedac17f1210b134d593ebd9f5e8483775
Reviewed-on: https://go-review.googlesource.com/27410
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/28641
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/path/filepath/export_windows_test.go
src/path/filepath/path_test.go
src/path/filepath/path_windows_test.go
src/path/filepath/symlink_windows.go