aboutsummaryrefslogtreecommitdiff
path: root/tests/sshserver.pl
diff options
context:
space:
mode:
authorKarlson2k <k2k@narod.ru>2016-02-22 12:30:37 +0300
committerDaniel Stenberg <daniel@haxx.se>2016-03-26 23:34:55 +0100
commite32644851a4a8126fc6d6b21ff191ffa7867363e (patch)
treeea4672be389b76aab6add9cadba93a5310864079 /tests/sshserver.pl
parent3d144ab99bed3ad9af1179c50f1df6334350aa98 (diff)
sshserver.pl: use quotes for given options
Fixed failed redirection of stderr with some options. At least on Msys2, perl fails to redirect stderr if $value contains newline or other weird characters.
Diffstat (limited to 'tests/sshserver.pl')
-rwxr-xr-xtests/sshserver.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index b0c0229b6..b305711b3 100755
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -558,7 +558,7 @@ sub sshd_supports_opt {
($sshdid =~ /SunSSH/)) {
# ssh daemon supports command line options -t -f and -o
$err = grep /((Unsupported)|(Bad configuration)|(Deprecated)) option.*$option/,
- qx("$sshd" -t -f $sshdconfig -o $option=$value 2>&1);
+ qx("$sshd" -t -f $sshdconfig -o "$option=$value" 2>&1);
return !$err;
}
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 299)) {