[BACK]Return to ssh.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh.c between version 1.336 and 1.337

version 1.336, 2010/04/10 00:00:16 version 1.337, 2010/05/14 23:29:23
Line 1156 
Line 1156 
   
 /* 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) {

Legend:
Removed from v.1.336  
changed lines
  Added in v.1.337