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);