2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 21:38:05 +00:00

Don't ask for a password if invoking user == target user.

This commit is contained in:
Todd C. Miller 2004-06-10 20:19:38 +00:00
parent 20815542a9
commit 31f98d84df

View File

@ -89,7 +89,7 @@ check_user(override)
char *prompt;
int status;
if (user_uid == 0 || user_is_exempt())
if (user_uid == 0 || user_uid == runas_pw->pw_uid || user_is_exempt())
return;
build_timestamp(&timestampdir, &timestampfile);