[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.37 and 1.38

version 1.37, 2001/06/19 16:21:49 version 1.38, 2001/06/24 17:12:52
Line 413 
Line 413 
                         quickexit(1);                          quickexit(1);
                 }                  }
                 rootlogin = 0;                  rootlogin = 0;
                 /* XXX - kerb5 uses a '/' not a '.' ??? */  
                 if ((instance = strchr(username, '.')) != NULL) {                  if ((instance = strchr(username, '.')) != NULL) {
                         if (strncmp(instance, ".root", 5) == 0)                          if (strncmp(instance, ".root", 5) == 0)
                                 rootlogin = 1;                                  rootlogin = 1;
Line 726 
Line 725 
         if (lastchance)          if (lastchance)
                 (void)printf("WARNING: Your password has expired.  You must change your password, now!\n");                  (void)printf("WARNING: Your password has expired.  You must change your password, now!\n");
   
         if (setusercontext(lc, pwd, pwd->pw_uid,          if (setusercontext(lc, pwd, rootlogin ? 0 : pwd->pw_uid,
             LOGIN_SETALL & ~LOGIN_SETPATH) < 0) {              LOGIN_SETALL & ~LOGIN_SETPATH) < 0) {
                 warn("unable to set user context");                  warn("unable to set user context");
                 quickexit(1);                  quickexit(1);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38