Skip to content
Snippets Groups Projects
Commit 52ee7bf9 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update-report: fix Mavericks check.

parent a9abbab9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment