aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-06-01 09:49:50 +0100
committerMike McQuaid2016-06-01 09:49:50 +0100
commit52ee7bf9e3a7eda9ffb52b7a1c6a17f3d3a68101 (patch)
tree8222f3307d1784b6bad9ae576f6e0f871f52935e /Library
parenta9abbab9175379d990d49d06341c14579db92bb2 (diff)
downloadbrew-52ee7bf9e3a7eda9ffb52b7a1c6a17f3d3a68101.tar.bz2
update-report: fix Mavericks check.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-report.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index e11cd647b..2d6a8f78a 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -123,7 +123,8 @@ module Homebrew
# This directory could have been compromised if it's world-writable/
# a symlink/owned by another user so don't copy files in those cases.
- return if legacy_cache.world_writable?
+ world_writable = legacy_cache.stat.mode & 0777 == 0777
+ return if world_writable
return if legacy_cache.symlink?
return if !legacy_cache.owned? && legacy_cache.lstat.uid != 0