From 01479df5b63657132070844429b539a9813ef61a Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 10 Apr 2012 10:07:29 +1000 Subject: [PATCH] [release-branch.go1] os: fix IsPermission on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« backport 1b2b113a2d66 os: fix IsPermission on windows Fixes #3482. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5987070 »»» --- src/pkg/os/error_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/os/error_windows.go b/src/pkg/os/error_windows.go index 5d692b0736..fbb0d4f3fe 100644 --- a/src/pkg/os/error_windows.go +++ b/src/pkg/os/error_windows.go @@ -26,5 +26,5 @@ func isPermission(err error) bool { if pe, ok := err.(*PathError); ok { err = pe.Err } - return err == ErrPermission + return err == syscall.ERROR_ACCESS_DENIED || err == ErrPermission }