diff --git a/bin/puppet b/bin/puppet index c03070291..c80174f60 100755 --- a/bin/puppet +++ b/bin/puppet @@ -1,4 +1,8 @@ #!/usr/bin/env ruby +# For security reasons, ensure that '.' is not on the load path +# This is primarily for 1.8.7 since 1.9.2+ doesn't put '.' on the load path +$LOAD_PATH.delete '.' + require 'puppet/util/command_line' Puppet::Util::CommandLine.new.execute