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

Diff for /src/usr.bin/login/login.c between version 1.50 and 1.51

version 1.50, 2003/06/03 02:56:10 version 1.51, 2003/08/12 13:14:58
Line 110 
Line 110 
 #include <util.h>  #include <util.h>
 #include <bsd_auth.h>  #include <bsd_auth.h>
   
 #ifdef KERBEROS  
 #include <kerberosIV/kafs.h>  
 #endif  
   
 #include "pathnames.h"  #include "pathnames.h"
   
 void     badlogin(char *);  void     badlogin(char *);
Line 773 
Line 769 
         auth_setstate(as, AUTH_OKAY);          auth_setstate(as, AUTH_OKAY);
         auth_close(as);          auth_close(as);
   
 #ifdef KERBEROS  
         kgettokens(pwd->pw_dir);  
 #endif  
   
         execlp(shell, tbuf, (char *)NULL);          execlp(shell, tbuf, (char *)NULL);
         err(1, "%s", shell);          err(1, "%s", shell);
 }  }
Line 971 
Line 963 
                 badlogin(username);                  badlogin(username);
         _exit(0);          _exit(0);
 }  }
   
 #ifdef KERBEROS  
 void  
 kgettokens(char *homedir)  
 {  
   
         /* buy AFS-tokens for homedir */  
         if (k_hasafs()) {  
                 char cell[128];  
   
                 k_setpag();  
                 if (k_afs_cell_of_file(homedir, cell, sizeof(cell)) == 0)  
                         krb_afslog(cell, 0);  
                 krb_afslog(0, 0);  
         }  
 }  
 #endif  

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51