skey'd sudo now works w/ normal password as well
This commit is contained in:
4
check.c
4
check.c
@@ -548,7 +548,7 @@ static void check_passwd()
|
|||||||
while (counter > 0) {
|
while (counter > 0) {
|
||||||
#ifdef HAVE_SKEY
|
#ifdef HAVE_SKEY
|
||||||
set_perms(PERM_ROOT);
|
set_perms(PERM_ROOT);
|
||||||
pass = skey_getpass(prompt, pw_ent, 1);
|
pass = skey_getpass(prompt, pw_ent, TRUE);
|
||||||
set_perms(PERM_USER);
|
set_perms(PERM_USER);
|
||||||
#else
|
#else
|
||||||
# ifdef USE_GETPASS
|
# ifdef USE_GETPASS
|
||||||
@@ -587,7 +587,7 @@ static void check_passwd()
|
|||||||
#ifdef HAVE_SKEY
|
#ifdef HAVE_SKEY
|
||||||
set_perms(PERM_ROOT);
|
set_perms(PERM_ROOT);
|
||||||
if (!strcmp(pw_ent->pw_passwd, skey_crypt(pass, pw_ent->pw_passwd,
|
if (!strcmp(pw_ent->pw_passwd, skey_crypt(pass, pw_ent->pw_passwd,
|
||||||
pw_ent, 0))) {
|
pw_ent, TRUE))) {
|
||||||
set_perms(PERM_USER);
|
set_perms(PERM_USER);
|
||||||
return; /* if the passwd is correct return() */
|
return; /* if the passwd is correct return() */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user