mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
fix: handle syscall.EROFS also for osIsPermission() (#16765)
This commit is contained in:
1 parent
714283fae2
commit
72e5212842
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user