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

Diff for /src/usr.bin/login/Attic/klogin.c between version 1.5 and 1.6

version 1.5, 1997/06/29 11:10:33 version 1.6, 1998/03/26 20:28:09
Line 46 
Line 46 
 #include <sys/syslog.h>  #include <sys/syslog.h>
 #include <des.h>  #include <des.h>
 #include <kerberosIV/krb.h>  #include <kerberosIV/krb.h>
   #include <kerberosIV/kafs.h>
   
 #include <err.h>  #include <err.h>
 #include <netdb.h>  #include <netdb.h>
Line 226 
Line 227 
 }  }
   
 void  void
   kgettokens(homedir)
           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);
           }
   }
   
   void
 kdestroy()  kdestroy()
 {  {
         char *file = krbtkfile_env;          char *file = krbtkfile_env;
Line 236 
Line 252 
 #ifdef TKT_SHMEM  #ifdef TKT_SHMEM
         char shmidname[MAXPATHLEN];          char shmidname[MAXPATHLEN];
 #endif /* TKT_SHMEM */  #endif /* TKT_SHMEM */
   
           if (k_hasafs())
               k_unlog();
   
         if (krbtkfile_env == NULL)          if (krbtkfile_env == NULL)
             return;              return;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6