mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Do not update timestamp if user not validated by sudoers.
This commit is contained in:
2
sudo.c
2
sudo.c
@@ -355,7 +355,7 @@ main(argc, argv)
|
||||
|
||||
/* Require a password if sudoers says so. */
|
||||
if (def_authenticate)
|
||||
check_user(ISSET(validated, FLAG_CHECK_USER));
|
||||
check_user(validated);
|
||||
|
||||
/* If run as root with SUDO_USER set, set sudo_user.pw to that user. */
|
||||
/* XXX - causes confusion when root is not listed in sudoers */
|
||||
|
Reference in New Issue
Block a user