mirror of https://github.com/minio/minio.git
fix: handle syscall.EROFS also for osIsPermission() (#16765)
This commit is contained in:
parent
714283fae2
commit
72e5212842
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue