[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.247 and 1.248

version 1.247, 2005/07/04 00:58:43 version 1.248, 2005/07/16 01:35:24
Line 779 
Line 779 
         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,
Line 1025 
Line 1025 
         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. */
Line 1241 
Line 1241 
                 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));
Line 1250 
Line 1250 
                 if (fd > STDERR_FILENO)                  if (fd > STDERR_FILENO)
                         close(fd);                          close(fd);
         }          }
   
         term = getenv("TERM");          term = getenv("TERM");
   
         flags = 0;          flags = 0;

Legend:
Removed from v.1.247  
changed lines
  Added in v.1.248