extend/pathname: handle missing permissions on removal.

Fixes #11783
This commit is contained in:
Mike McQuaid 2021-07-28 15:40:23 +01:00
parent 89b8619153
commit 714bfee81f
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -261,7 +261,7 @@ class Pathname
else
false
end
rescue Errno::EACCES, Errno::ENOENT, Errno::EBUSY
rescue Errno::EACCES, Errno::ENOENT, Errno::EBUSY, Errno::EPERM
false
end