version 1.487, 2018/07/18 11:34:04 |
version 1.488, 2018/07/19 10:28:47 |
|
|
fatal("Invalid multiplex command."); |
fatal("Invalid multiplex command."); |
break; |
break; |
case 'P': /* deprecated */ |
case 'P': /* deprecated */ |
options.use_privileged_port = 0; |
|
break; |
break; |
case 'Q': |
case 'Q': |
cp = NULL; |
cp = NULL; |
|
|
if (options.connection_attempts <= 0) |
if (options.connection_attempts <= 0) |
fatal("Invalid number of ConnectionAttempts"); |
fatal("Invalid number of ConnectionAttempts"); |
|
|
if (original_effective_uid != 0) |
|
options.use_privileged_port = 0; |
|
|
|
if (sshbuf_len(command) != 0 && options.remote_command != NULL) |
if (sshbuf_len(command) != 0 && options.remote_command != NULL) |
fatal("Cannot execute command-line and remote command."); |
fatal("Cannot execute command-line and remote command."); |
|
|
|
|
/* Open a connection to the remote host. */ |
/* Open a connection to the remote host. */ |
if (ssh_connect(ssh, host, addrs, &hostaddr, options.port, |
if (ssh_connect(ssh, host, addrs, &hostaddr, options.port, |
options.address_family, options.connection_attempts, |
options.address_family, options.connection_attempts, |
&timeout_ms, options.tcp_keep_alive, |
&timeout_ms, options.tcp_keep_alive) != 0) |
options.use_privileged_port) != 0) |
|
exit(255); |
exit(255); |
|
|
if (addrs != NULL) |
if (addrs != NULL) |