Commit 01479df5 authored by Alex Brainman's avatar Alex Brainman

[release-branch.go1] os: fix IsPermission on windows

««« backport 1b2b113a2d66
os: fix IsPermission on windows

Fixes #3482.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5987070
»»»
parent 610fc659
......@@ -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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment