version 1.336, 2010/04/10 00:00:16 |
version 1.337, 2010/05/14 23:29:23 |
|
|
|
|
/* request pty/x11/agent/tcpfwd/shell for channel */ |
/* request pty/x11/agent/tcpfwd/shell for channel */ |
static void |
static void |
ssh_session2_setup(int id, void *arg) |
ssh_session2_setup(int id, int success, void *arg) |
{ |
{ |
extern char **environ; |
extern char **environ; |
const char *display; |
const char *display; |
int interactive = tty_flag; |
int interactive = tty_flag; |
|
|
|
if (!success) |
|
return; /* No need for error message, channels code sens one */ |
|
|
display = getenv("DISPLAY"); |
display = getenv("DISPLAY"); |
if (options.forward_x11 && display != NULL) { |
if (options.forward_x11 && display != NULL) { |