[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.17 and 1.18

version 1.17, 1997/01/27 20:44:14 version 1.18, 1997/02/04 03:39:11
Line 221 
Line 221 
                         getloginname();                          getloginname();
                 }                  }
                 rootlogin = 0;                  rootlogin = 0;
 #if 1 /* Why should anyone with a root instance be able to be root here? */  
   #if defined(KERBEROS) || defined(KERBEROS5)
                   /*
                    * Why should anyone with a root instance be able
                    * to be root here?
                    */
                 instance = "";                  instance = "";
 #else  #endif
 #ifdef  KERBEROS  #ifdef  KERBEROS
                 if ((instance = strchr(username, '.')) != NULL) {                  if ((instance = strchr(username, '.')) != NULL) {
                         if (strncmp(instance, ".root", 5) == 0)                          if (strncmp(instance, ".root", 5) == 0)
Line 239 
Line 244 
                         *instance++ = '\0';                          *instance++ = '\0';
                 } else                  } else
                         instance = "";                          instance = "";
 #endif  
 #endif  #endif
                 if (strlen(username) > UT_NAMESIZE)                  if (strlen(username) > UT_NAMESIZE)
                         username[UT_NAMESIZE] = '\0';                          username[UT_NAMESIZE] = '\0';

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18