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

Diff for /src/usr.bin/sudo/Attic/sudo.c between version 1.46 and 1.47

version 1.46, 2013/04/29 00:28:23 version 1.47, 2013/11/06 21:30:56
Line 1199 
Line 1199 
 {  {
     int errflags;      int errflags;
   
       if (!def_use_loginclass)
           return;
   
     /*      /*
      * Don't make it a fatal error if the user didn't specify the login       * Don't make it a fatal error if the user didn't specify the login
      * class themselves.  We do this because if login.conf gets       * class themselves.  We do this because if login.conf gets
Line 1220 
Line 1223 
                 (pw->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS;                  (pw->pw_uid == 0) ? LOGIN_DEFROOTCLASS : LOGIN_DEFCLASS;
     }      }
   
       /* Make sure specified login class is valid. */
     lc = login_getclass(login_class);      lc = login_getclass(login_class);
     if (!lc || !lc->lc_class || strcmp(lc->lc_class, login_class) != 0) {      if (!lc || !lc->lc_class || strcmp(lc->lc_class, login_class) != 0) {
         log_error(errflags, "unknown login class: %s", login_class);          log_error(errflags, "unknown login class: %s", login_class);
         if (!lc)          def_use_loginclass = FALSE;
             lc = login_getclass(NULL);  /* needed for login_getstyle() later */  
     }      }
 }  }
 #else  #else

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47