mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:37:20 +03:00
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:
parent
3d144ab99b
commit
e32644851a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue