]> Cypherpunks repositories - gostls13.git/commit
os: fix Remove for file with read only attribute on Windows
authorMarc-Antoine Ruel <maruel@chromium.org>
Thu, 7 Apr 2016 18:24:24 +0000 (14:24 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 May 2016 17:37:55 +0000 (17:37 +0000)
commit2ffb3e5d905b5622204d199128dec06cefd57790
tree5af209f6219ac74dfdc7525433cf047afcf470ef
parent4d8031cf3c179d8682b62feae1d5a9109d14b382
os: fix Remove for file with read only attribute on Windows

Include integration test. Confirmed that without the fix, the test case
TestDeleteReadOnly fails.

This permits to revert "cmd/go: reset read-only flag during TestIssue10952"
This reverts commit 3b7841b3aff9204f054ffabbe4dd39d3e3dd3e91.

Fixes #9606

Change-Id: Ib55c151a8cf1a1da02ab18c34a9b58f615c34254
Reviewed-on: https://go-review.googlesource.com/18235
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/os/file_windows.go
src/os/os_windows_test.go