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

View File

@@ -133,7 +133,7 @@ func osIsNotExist(err error) bool {
} }
func osIsPermission(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 { func osIsExist(err error) bool {