aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorZhiming Wang2016-08-24 12:59:57 +0800
committerZhiming Wang2016-08-24 12:59:57 +0800
commit9f072a92d5b9dae90a534b42214f728422be2ab1 (patch)
tree0924e7c37c3446db501a8c4be79b3bf38178633d /Library/Homebrew/utils
parent31052a924f2d39df69a0e202972b5a9806ff5ac8 (diff)
downloadbrew-9f072a92d5b9dae90a534b42214f728422be2ab1.tar.bz2
config: set TMPDIR, TEMP and TMP to HOMEBREW_TEMP
TMPDIR, TEMP and TMP (when set) are not whitelisted for writing in sandbox.rb, which could result in sandbox violations when programs attempt to write to these locations. Setting TMPDIR, TEMP and TMP to HOMEBREW_TEMP (which defaults to /tmp when not set) works around the aforementioned problem and also improves uniformity in the locations of tempfiles created during Homebrew operations. Caveat: Non-matching HOMEBREW_TEMP and TMPDIR could lead to undesirable side effects in certain cases, e.g., emacsclient not being able to find an existing server (whose socket lives in $TMPDIR/emacs$UID/) when launched through brew edit.
Diffstat (limited to 'Library/Homebrew/utils')
0 files changed, 0 insertions, 0 deletions