mirror of
https://github.com/minio/minio.git
synced 2025-01-23 04:33:15 -05:00
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…
x
Reference in New Issue
Block a user