[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.43 and 1.44

version 1.43, 2001/08/12 02:45:33 version 1.44, 2002/01/06 21:59:15
Line 472 
Line 472 
                 /*                  /*
                  * If we do not have the force flag authenticate the user                   * If we do not have the force flag authenticate the user
                  */                   */
                 if (fflag)                  if (!fflag) {
                         authok = AUTH_SECURE;  
                 else {  
                         lastchance =                          lastchance =
                             login_getcaptime(lc, "password-dead", 0, 0) != 0;                              login_getcaptime(lc, "password-dead", 0, 0) != 0;
                         if (lastchance)                          if (lastchance)
Line 509 
Line 507 
                 if (pwd == 0)                  if (pwd == 0)
                         goto failed;                          goto failed;
   
                 authok &= AUTH_SECURE;  
   
                 /*                  /*
                  * If trying to log in as root on an insecure terminal,                   * If trying to log in as root on an insecure terminal,
                  * refuse the login attempt unless the authentication                   * refuse the login attempt unless the authentication
                  * style explicitly says a root login is okay.                   * style explicitly says a root login is okay.
                  */                   */
                 if (authok == 0 && pwd && rootlogin && !rootterm(tty))                  if (pwd && rootlogin && !rootterm(tty))
                         goto failed;                          goto failed;
   
                 if (fflag) {                  if (fflag) {

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44