diff options
| author | ilovezfs | 2018-01-19 14:06:22 -0800 |
|---|---|---|
| committer | ilovezfs | 2018-01-19 14:06:22 -0800 |
| commit | 2e1ec02aeb0f5bea48826861c848583b217bba33 (patch) | |
| tree | d91a9e89e8fdbee417d676aea5491eefbab05470 /Library/Homebrew | |
| parent | d14fd49b3062ab1d95e86b78a8228c8aee3a3304 (diff) | |
| download | brew-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.rb | 2 |
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 |
