]> Cypherpunks repositories - gostls13.git/commit
os: return PathError on RemoveAll with trailing dots
authorTobias Klauser <tklauser@distanz.ch>
Sun, 18 Nov 2018 16:18:37 +0000 (17:18 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 20 Nov 2018 20:03:29 +0000 (20:03 +0000)
commit77807093692070801b66960b6918fb59c9b470cd
tree1eb6e2b0d34c3ca2421b6af11b211539869292f3
parent50c3465fad946caa545c4835ffccc6f89c762905
os: return PathError on RemoveAll with trailing dots

Return a PathError instead of an unwrapped syscall.EINVAL if the path
ends with dots.

As suggested by Roger Peppe in CL 150158.

Change-Id: I4d82a6ff64a979b67a843a1cc4fea58ed9326aed
Reviewed-on: https://go-review.googlesource.com/c/150160
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/removeall_at.go