mirror of
https://github.com/curl/curl.git
synced 2026-05-18 20:36:20 +03:00
runtests: skip starting the ssh server if user name is lacking
Because the ssh server startup script *requires* a user name there's no point in invoking it if no name was found. Reported-by: Ricardo M. Correia Ref: #9007 Closes #9013
This commit is contained in:
parent
4572489c59
commit
f0f587d347
1 changed files with 5 additions and 0 deletions
|
|
@ -2195,6 +2195,11 @@ sub runsshserver {
|
|||
my $logfile;
|
||||
my $port = 20000; # no lower port
|
||||
|
||||
if(!$USER) {
|
||||
logmsg "Can't start ssh server due to lack of USER name";
|
||||
return (0,0,0);
|
||||
}
|
||||
|
||||
$server = servername_id($proto, $ipvnum, $idnum);
|
||||
|
||||
$pidfile = $serverpidfile{$server};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue