aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-10-12 08:38:13 +0100
committerGitHub2016-10-12 08:38:13 +0100
commit7a3ba923240f7b9246abc2bb4d651ebe16a549df (patch)
treeda669b2401f4981caa7f75320900c6151a556a20 /Library/Homebrew
parent1a01a4d42d8103e0a88a267546d011b2f3b5c886 (diff)
parent58d998e20826a9d7b319b9677c91391240e22297 (diff)
downloadbrew-7a3ba923240f7b9246abc2bb4d651ebe16a549df.tar.bz2
Merge pull request #1261 from MikeMcQuaid/tweak-repo-sandbox
postinstall: allow write access to cellars in repository.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/postinstall.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb
index 1e205e65d..e8855b09e 100644
--- a/Library/Homebrew/cmd/postinstall.rb
+++ b/Library/Homebrew/cmd/postinstall.rb
@@ -35,10 +35,10 @@ module Homebrew
sandbox.record_log(formula.logs/"postinstall.sandbox.log")
sandbox.allow_write_temp_and_cache
sandbox.allow_write_log(formula)
- sandbox.allow_write_cellar(formula)
sandbox.allow_write_xcode
- sandbox.allow_write_path HOMEBREW_PREFIX
sandbox.deny_write_homebrew_repository
+ sandbox.allow_write_path HOMEBREW_PREFIX
+ sandbox.allow_write_cellar(formula)
sandbox.exec(*args)
else
exec(*args)