]> Cypherpunks repositories - gostls13.git/commit
os: prevent RemoveAll to remove "." on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Wed, 21 Nov 2018 23:06:42 +0000 (00:06 +0100)
committerDavid du Colombier <0intro@gmail.com>
Wed, 21 Nov 2018 23:29:43 +0000 (23:29 +0000)
commit47df645473210267fd7512c5b92de00908198974
tree28a1681e9c44c242ee978651baf3e6ebec7e62db
parent72496e35ce13af04564d10bad3a566901eda867a
os: prevent RemoveAll to remove "." on Plan 9

CL 150497 enabled TestRemoveAllDot on "noat" systems.

However, this test is failing on Plan 9 because the rmdir
system call allows to remove "." on Plan 9.

This change prevents the "noat" implementation of RemoveAll to
remove ".", so it remains consistent with the "at" implementation.

Fixes #28903.

Change-Id: Ifc8fe36bdd8053a4e416f0590663c844c97ce72a
Reviewed-on: https://go-review.googlesource.com/c/150621
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/path.go
src/os/removeall_at.go
src/os/removeall_noat.go