projects
/
Net-SSH.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b44cc89
)
fix stdin_string
author
ivan
<ivan>
Tue, 2 Jul 2002 13:54:39 +0000
(13:54 +0000)
committer
ivan
<ivan>
Tue, 2 Jul 2002 13:54:39 +0000
(13:54 +0000)
SSH.pm
patch
|
blob
|
history
diff --git
a/SSH.pm
b/SSH.pm
index
0fe98cf
..
d3a8c22
100644
(file)
--- a/
SSH.pm
+++ b/
SSH.pm
@@
-171,8
+171,7
@@
sub _check_ssh_version {
open3($writer, $reader, $error, $ssh, '-V');
my $ssh_version = <$error>;
chomp($ssh_version);
- $ssh_version =~ s/.*OpenSSH[-|_](\w+?)\.\w+?\.\w+?.*/$1/g;
- if ($ssh_version == 1) {
+ if ( $ssh_version =~ /.*OpenSSH[-|_](\w+)\./ && $1 == 1 ) {
$equalspace = " ";
} else {
$equalspace = "=";