mirror of
https://github.com/golang/go
synced 2024-11-15 03:00:36 -07:00
[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 »»»
This commit is contained in:
parent
610fc6598b
commit
01479df5b6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user