From: Karlson2k Date: Mon, 22 Feb 2016 09:30:37 +0000 (+0300) Subject: sshserver.pl: use quotes for given options X-Git-Tag: curl-7_49_0~285 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e32644851a4a8126fc6d6b21ff191ffa7867363e;p=thirdparty%2Fcurl.git 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. --- diff --git a/tests/sshserver.pl b/tests/sshserver.pl index b0c0229b6c..b305711b36 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)) {