summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-03-30 18:23:47 +0100
committerThom May <thom@may.lt>2016-03-30 18:23:47 +0100
commit7ebc592921488254c0741e1b421f68aed360b328 (patch)
tree4b82ff1291fe80074425c5b7fa0fd053ce9eae06 /lib
parentc66eeb9abc9c43470fba130c3e2cc33f930667d2 (diff)
parent1d06770397bb1017b03333b8a7b4feec549e8412 (diff)
downloadchef-7ebc592921488254c0741e1b421f68aed360b328.tar.gz
Merge pull request #4716 from gips0n/unset_TMPDIR_for_homebrew
fix for #4715 - unset TMPDIR in homebrew package provider
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/package/homebrew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/homebrew.rb b/lib/chef/provider/package/homebrew.rb
index 853a354b28..a105f6d7d0 100644
--- a/lib/chef/provider/package/homebrew.rb
+++ b/lib/chef/provider/package/homebrew.rb
@@ -127,7 +127,7 @@ class Chef
Chef::Log.debug "Executing '#{command}' as user '#{homebrew_user.name}'"
# FIXME: this 1800 second default timeout should be deprecated
- output = shell_out_with_timeout!(command, :timeout => 1800, :user => homebrew_uid, :environment => { "HOME" => homebrew_user.dir, "RUBYOPT" => nil })
+ output = shell_out_with_timeout!(command, :timeout => 1800, :user => homebrew_uid, :environment => { "HOME" => homebrew_user.dir, "RUBYOPT" => nil, "TMPDIR" => nil })
output.stdout.chomp
end