diff options
Diffstat (limited to 'lib/custodian/protocol-tests/rsync.rb')
-rwxr-xr-x | lib/custodian/protocol-tests/rsync.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocol-tests/rsync.rb b/lib/custodian/protocol-tests/rsync.rb index d2a2f45..4493d0f 100755 --- a/lib/custodian/protocol-tests/rsync.rb +++ b/lib/custodian/protocol-tests/rsync.rb @@ -81,11 +81,11 @@ class RSYNCTest socket.puts( "QUIT") banner = socket.gets(nil) - banner = banner[0,20] + banner = banner[0,20] unless( banner.nil? ) socket.close() - if ( banner =~ /rsyncd/i ) + if ( ( !banner.nil? ) && ( banner =~ /rsyncd/i ) ) puts "rsync alive: #{banner}" if ( @test_data['verbose'] ) return true else |