Commit 8e109af8 authored by Alex Brainman's avatar Alex Brainman

os: fix IsPermission on windows

Fixes #3482.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5987070
parent 6849c4db
......@@ -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