From 2e1ec02aeb0f5bea48826861c848583b217bba33 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 19 Jan 2018 14:06:22 -0800 Subject: [PATCH] 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. --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 8e10971e16..b4311f13fa 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