aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/postinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/postinstall.rb')
-rw-r--r--Library/Homebrew/cmd/postinstall.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb
index d677ecc1e..16608e773 100644
--- a/Library/Homebrew/cmd/postinstall.rb
+++ b/Library/Homebrew/cmd/postinstall.rb
@@ -18,6 +18,9 @@ module Homebrew
Utils.safe_fork do
if Sandbox.available? && ARGV.sandbox?
sandbox = Sandbox.new
+ logd = HOMEBREW_LOGS/formula.name
+ logd.mkpath
+ sandbox.record_log(logd/"sandbox.postinstall.log")
sandbox.allow_write_temp_and_cache
sandbox.allow_write_log(formula)
sandbox.allow_write_cellar(formula)