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.
This commit is contained in:
Karlson2k 2016-02-22 12:30:37 +03:00 committed by Daniel Stenberg
parent 3d144ab99b
commit e32644851a
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {