2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

added NO_PASSWD

This commit is contained in:
Todd C. Miller
1996-03-22 00:55:29 +00:00
parent 823ddd9fdd
commit 1265fcc4f8
3 changed files with 11 additions and 0 deletions

4
sudo.c
View File

@@ -291,7 +291,9 @@ int main(argc, argv)
remove_timestamp(); /* remove the timestamp ticket file */
exit(0);
} else if (sudo_mode == MODE_LIST) {
#ifndef NO_PASSWD
check_user();
#endif /* NO_PASSWD */
log_error(ALL_SYSTEMS_GO);
(void) validate(FALSE);
exit(0);
@@ -304,7 +306,9 @@ int main(argc, argv)
switch (rtn) {
case VALIDATE_OK:
#ifndef NO_PASSWD
check_user();
#endif /* NO_PASSWD */
log_error(ALL_SYSTEMS_GO);
if (sudo_mode == MODE_VALIDATE)
exit(0);