version 1.22, 2001/11/19 19:02:15 |
version 1.23, 2001/12/07 03:48:39 |
|
|
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] && |
|
|
(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)); |
} |
} |
|
|