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:
4
sudo.c
4
sudo.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user