fix: handle syscall.EROFS also for osIsPermission() (#16765)

This commit is contained in:
Harshavardhana 2023-03-06 08:56:29 -08:00 committed by GitHub
parent 714283fae2
commit 72e5212842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func osIsNotExist(err error) bool {
}
func osIsPermission(err error) bool {
return errors.Is(err, os.ErrPermission)
return errors.Is(err, os.ErrPermission) || errors.Is(err, syscall.EROFS)
}
func osIsExist(err error) bool {