fixed bug where if you hit return at first sudo prompt it would
still log as a failure
This commit is contained in:
2
check.c
2
check.c
@@ -416,7 +416,7 @@ static void check_passwd()
|
|||||||
#endif /* USE_GETPASS */
|
#endif /* USE_GETPASS */
|
||||||
#endif /* HAVE_SKEY */
|
#endif /* HAVE_SKEY */
|
||||||
if (!pass || *pass == '\0')
|
if (!pass || *pass == '\0')
|
||||||
if (counter == 0)
|
if (counter == TRIES_FOR_PASSWORD)
|
||||||
exit(0);
|
exit(0);
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user