summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-22 01:28:01 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-22 01:28:01 +0000
commitbe711d357857f5e6d4a28a22bd60dd89e9e136c0 (patch)
treece7d65c9491bb7da343b7ce7790584d0202f300f /lib
parentc616572d59b8b5142f64193ab87073fbc3b788f7 (diff)
downloadpuppet-be711d357857f5e6d4a28a22bd60dd89e9e136c0.tar.gz
puppet-be711d357857f5e6d4a28a22bd60dd89e9e136c0.tar.xz
puppet-be711d357857f5e6d4a28a22bd60dd89e9e136c0.zip
Allow execution of bare strings as long as there's no attempt to change uid/gid
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1963 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index 906184c18..bddcf8533 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -272,7 +272,7 @@ module Util
command = command.collect { |i| i.to_s }
str = command.join(" ")
else
- raise "Must pass an array"
+ raise "Must pass an array" unless uid.nil? && gid.nil?
str = command
end
if respond_to? :debug