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

Diff for /src/usr.bin/passwd/local_passwd.c between version 1.22 and 1.23

version 1.22, 2001/11/19 19:02:15 version 1.23, 2001/12/07 03:48:39
Line 152 
Line 152 
         int tries, pwd_tries;          int tries, pwd_tries;
         char buf[_PASSWORD_LEN+1], salt[_PASSWORD_LEN];          char buf[_PASSWORD_LEN+1], salt[_PASSWORD_LEN];
   
           (void)signal(SIGINT, kbintr);
           (void)signal(SIGQUIT, kbintr);
   
         if (!authenticated) {          if (!authenticated) {
                 (void)printf("Changing local password for %s.\n", pw->pw_name);                  (void)printf("Changing local password for %s.\n", pw->pw_name);
                 if (uid && pw->pw_passwd[0] &&                  if (uid && pw->pw_passwd[0] &&
Line 187 
Line 190 
                 (void)printf("Couldn't generate salt.\n");                  (void)printf("Couldn't generate salt.\n");
                 pw_error(NULL, 0, 0);                  pw_error(NULL, 0, 0);
         }          }
           (void)signal(SIGINT, SIG_DFL);
           (void)signal(SIGQUIT, SIG_DFL);
   
         return(crypt(buf, salt));          return(crypt(buf, salt));
 }  }
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23