[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.128 and 1.129

version 1.128, 2002/02/16 00:51:44 version 1.129, 2002/03/18 03:41:08
Line 123 
Line 123 
 Session sessions[MAX_SESSIONS];  Session sessions[MAX_SESSIONS];
   
 #ifdef HAVE_LOGIN_CAP  #ifdef HAVE_LOGIN_CAP
 static login_cap_t *lc;  login_cap_t *lc;
 #endif  #endif
   
 void  void
Line 138 
Line 138 
                 close(startup_pipe);                  close(startup_pipe);
                 startup_pipe = -1;                  startup_pipe = -1;
         }          }
 #ifdef HAVE_LOGIN_CAP  
         if ((lc = login_getclass(authctxt->pw->pw_class)) == NULL) {  
                 error("unable to get login class");  
                 return;  
         }  
 #ifdef BSD_AUTH  
         if (auth_approval(NULL, lc, authctxt->pw->pw_name, "ssh") <= 0) {  
                 packet_disconnect("Approval failure for %s",  
                     authctxt->pw->pw_name);  
         }  
 #endif  
 #endif  
         /* setup the channel layer */          /* setup the channel layer */
         if (!no_port_forwarding_flag && options.allow_tcp_forwarding)          if (!no_port_forwarding_flag && options.allow_tcp_forwarding)
                 channel_permit_all_opens();                  channel_permit_all_opens();

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.129