]> Cypherpunks repositories - gostls13.git/commit
os: permit RemoveAll with paths that end in ".."
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Nov 2018 18:15:14 +0000 (10:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Nov 2018 19:33:17 +0000 (19:33 +0000)
commit50c3465fad946caa545c4835ffccc6f89c762905
treef6a2a2795f4133ab286f6268e81ac4f9e6696130
parentaadffd5b675254ce6235b74353ac260d2a5848e1
os: permit RemoveAll with paths that end in ".."

Prohibiting RemoveAll with paths that end in ".." was added with
CL 137442 in this release cycle, but it worked before and it should
continue to work.

Also run TestRemoveAllDot on all systems; the test is not specific to
the use of unlinkat and friends.

Change-Id: I277784c8915cd748fec318d2936062440d5d1fde
Reviewed-on: https://go-review.googlesource.com/c/150497
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/os/removeall_at.go
src/os/removeall_test.go