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

Diff for /src/usr.bin/ssh/session.c between version 1.148 and 1.149

version 1.148, 2002/08/29 15:57:25 version 1.149, 2002/09/12 19:50:36
Line 871 
Line 871 
                 }                  }
         }          }
   
           /* SSH_CLIENT deprecated */
         snprintf(buf, sizeof buf, "%.50s %d %d",          snprintf(buf, sizeof buf, "%.50s %d %d",
             get_remote_ipaddr(), get_remote_port(), get_local_port());              get_remote_ipaddr(), get_remote_port(), get_local_port());
         child_set_env(&env, &envsize, "SSH_CLIENT", buf);          child_set_env(&env, &envsize, "SSH_CLIENT", buf);
   
           snprintf(buf, sizeof buf, "%.50s %d %.50s %d",
               get_remote_ipaddr(), get_remote_port(),
               get_local_ipaddr(packet_get_connection_in()), get_local_port());
           child_set_env(&env, &envsize, "SSH_CONNECTION", buf);
   
         if (s->ttyfd != -1)          if (s->ttyfd != -1)
                 child_set_env(&env, &envsize, "SSH_TTY", s->tty);                  child_set_env(&env, &envsize, "SSH_TTY", s->tty);

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149