aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorilovezfs2018-01-19 14:06:22 -0800
committerilovezfs2018-01-19 14:06:22 -0800
commit2e1ec02aeb0f5bea48826861c848583b217bba33 (patch)
treed91a9e89e8fdbee417d676aea5491eefbab05470 /Library/Homebrew
parentd14fd49b3062ab1d95e86b78a8228c8aee3a3304 (diff)
downloadbrew-2e1ec02aeb0f5bea48826861c848583b217bba33.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 8e10971e1..b4311f13f 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -255,7 +255,7 @@ class Pathname
else
false
end
- rescue Errno::EACCES, Errno::ENOENT
+ rescue Errno::EACCES, Errno::ENOENT, Errno::EBUSY
false
end