summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/ping.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/protocoltest/ping.rb b/lib/custodian/protocoltest/ping.rb
index 95b387c..c23e98d 100644
--- a/lib/custodian/protocoltest/ping.rb
+++ b/lib/custodian/protocoltest/ping.rb
@@ -31,7 +31,7 @@ module Custodian
#
# Save the host
#
- @host = line.split( /\s+/)[0]
+ @host = line.split( /\s+/)[0]
#
# Is this test inverted?
@@ -86,9 +86,9 @@ module Custodian
#
- # Run the test.
+ # Run the test: Avoiding the use of the shell.
#
- if ( system( "#{binary} #{host}" ) == true )
+ if ( system( binary, host ) == true )
return true
else
@error = "Ping failed."