version 1.247, 2005/07/04 00:58:43 |
version 1.248, 2005/07/16 01:35:24 |
|
|
for (i = 0; i < options.num_remote_forwards; i++) { |
for (i = 0; i < options.num_remote_forwards; i++) { |
debug("Remote connections from %.200s:%d forwarded to " |
debug("Remote connections from %.200s:%d forwarded to " |
"local address %.200s:%d", |
"local address %.200s:%d", |
(options.remote_forwards[i].listen_host == NULL) ? |
(options.remote_forwards[i].listen_host == NULL) ? |
(options.gateway_ports ? "*" : "LOCALHOST") : |
(options.gateway_ports ? "*" : "LOCALHOST") : |
options.remote_forwards[i].listen_host, |
options.remote_forwards[i].listen_host, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].listen_port, |
options.remote_forwards[i].connect_host, |
options.remote_forwards[i].connect_host, |
|
|
const char *display; |
const char *display; |
int interactive = tty_flag; |
int interactive = tty_flag; |
|
|
display = getenv("DISPLAY"); |
display = getenv("DISPLAY"); |
if (options.forward_x11 && display != NULL) { |
if (options.forward_x11 && display != NULL) { |
char *proto, *data; |
char *proto, *data; |
/* Get reasonable local authentication information. */ |
/* Get reasonable local authentication information. */ |
|
|
close(sock); |
close(sock); |
return; |
return; |
} |
} |
|
|
if (stdin_null_flag) { |
if (stdin_null_flag) { |
if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) |
if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) |
fatal("open(/dev/null): %s", strerror(errno)); |
fatal("open(/dev/null): %s", strerror(errno)); |
|
|
if (fd > STDERR_FILENO) |
if (fd > STDERR_FILENO) |
close(fd); |
close(fd); |
} |
} |
|
|
term = getenv("TERM"); |
term = getenv("TERM"); |
|
|
flags = 0; |
flags = 0; |