From e32644851a4a8126fc6d6b21ff191ffa7867363e Mon Sep 17 00:00:00 2001 From: Karlson2k Date: Mon, 22 Feb 2016 12:30:37 +0300 Subject: 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. --- tests/sshserver.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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)) { -- cgit v1.2.3