pathname: fix rmdir_if_possible with mount points

Attempting to rmdir a directory that is a mount point results in EBUSY,
not EACCES or ENOENT, so also rescue EBUSY in rmdir_if_possible.
This commit is contained in:
ilovezfs 2018-01-19 14:06:22 -08:00
parent d14fd49b30
commit 2e1ec02aeb

View File

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