bin/mco in mcollective-client-2.5.1 vs bin/mco in mcollective-client-2.5.2
- old
+ new
@@ -1,6 +1,10 @@
#!/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 'mcollective'
Version = MCollective.version
known_applications = MCollective::Applications.list