2
0
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:
Todd C. Miller
2007-07-06 18:51:43 +00:00
parent 988f44a603
commit 6f1a9c0bc9
2 changed files with 6 additions and 5 deletions

2
sudo.c
View File

@@ -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 */