S/Key support now works with sunos4 shadow passwords

This commit is contained in:
Todd C. Miller
1995-11-20 06:39:56 +00:00
parent a72a931018
commit 02bc955a12

View File

@@ -586,8 +586,7 @@ static void check_passwd()
#ifdef HAVE_SKEY
set_perms(PERM_ROOT);
if (!strcmp(pw_ent->pw_passwd, skey_crypt(pass, pw_ent->pw_passwd,
pw_ent, TRUE))) {
if (!strcmp(encrypted, skey_crypt(pass, encrypted, pw_ent, TRUE))) {
set_perms(PERM_USER);
return; /* if the passwd is correct return() */
}