]> Cypherpunks repositories - gostls13.git/commit
os: fix rename on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Thu, 7 Jan 2016 06:45:59 +0000 (07:45 +0100)
committerRuss Cox <rsc@golang.org>
Fri, 8 Jan 2016 14:22:47 +0000 (14:22 +0000)
commit161f2e85ee4959afff3e117d9488eddc49e975cd
treeda82a340a1c3d55199c390e668add5a8c5b3b75b
parent9a2d717fa9ca58263ec3840460f0023c78a0714d
os: fix rename on Plan 9

Rename should remove newname if the file already exists
and is not a directory.

Fixes #13844.

Change-Id: I85a5cc28e8d161637a8bc1de33f4a637d9154cd1
Reviewed-on: https://go-review.googlesource.com/18291
Reviewed-by: Russ Cox <rsc@golang.org>
src/os/file_plan9.go
src/os/os_test.go