mirror of
https://github.com/curl/curl.git
synced 2026-08-04 14:06:15 +03:00
tests: support spaces in paths to SSH, SSHD and SFTP binaries
First patch to enable Windows support using Cygwin-based OpenSSH.
This commit is contained in:
parent
2c7f099253
commit
0114889456
3 changed files with 15 additions and 15 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# | (__| |_| | _ <| |___
|
||||
# \___|\___/|_| \_\_____|
|
||||
#
|
||||
# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# This software is licensed as described in the file COPYING, which
|
||||
# you should have received as part of this distribution. The terms
|
||||
|
|
@ -417,7 +417,7 @@ sub sshversioninfo {
|
|||
$error = "Error: cannot read or execute $sshbin";
|
||||
}
|
||||
else {
|
||||
my $cmd = ($sshbin =~ /$sshdexe$/) ? "$sshbin -?" : "$sshbin -V";
|
||||
my $cmd = ($sshbin =~ /$sshdexe$/) ? "\"$sshbin\" -?" : "\"$sshbin\" -V";
|
||||
$error = "$cmd\n";
|
||||
foreach my $tmpstr (qx($cmd 2>&1)) {
|
||||
if($tmpstr =~ /OpenSSH[_-](\d+)\.(\d+)(\.(\d+))*/i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue