mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
@ -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…
Reference in New Issue
Block a user