[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.96 and 1.97

version 1.96, 2001/06/26 16:15:24 version 1.97, 2001/06/27 02:12:53
Line 494 
Line 494 
   
         /* Fork the child. */          /* Fork the child. */
         if ((pid = fork()) == 0) {          if ((pid = fork()) == 0) {
   
                 /* Child.  Reinitialize the log because the pid has changed. */                  /* Child.  Reinitialize the log because the pid has changed. */
                 log_init(__progname, options.log_level, options.log_facility, log_stderr);                  log_init(__progname, options.log_level, options.log_facility, log_stderr);
   
                 /* Close the master side of the pseudo tty. */                  /* Close the master side of the pseudo tty. */
                 close(ptyfd);                  close(ptyfd);
   
Line 1189 
Line 1189 
 }  }
   
 int  int
 session_open(int chanid)  session_open(Authctxt *authctxt, int chanid)
 {  {
         Session *s = session_new();          Session *s = session_new();
         debug("session_open: channel %d", chanid);          debug("session_open: channel %d", chanid);
Line 1197 
Line 1197 
                 error("no more sessions");                  error("no more sessions");
                 return 0;                  return 0;
         }          }
         s->pw = auth_get_user();          s->authctxt = authctxt;
           s->pw = authctxt->pw;
         if (s->pw == NULL)          if (s->pw == NULL)
                 fatal("no user for session %d", s->self);                  fatal("no user for session %d", s->self);
         debug("session_open: session %d: link with channel %d", s->self, chanid);          debug("session_open: session %d: link with channel %d", s->self, chanid);
Line 1675 
Line 1676 
 static void  static void
 do_authenticated2(Authctxt *authctxt)  do_authenticated2(Authctxt *authctxt)
 {  {
         server_loop2();          server_loop2(authctxt);
 }  }

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97