2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

A user can always list their own entries, even with -u.

Better error message when failing to list another user's entries.
This commit is contained in:
Todd C. Miller
2004-11-11 17:22:30 +00:00
parent a239e60a6a
commit 541908f1bd
2 changed files with 3 additions and 1 deletions

View File

@@ -322,7 +322,8 @@ log_auth(status, inform_user)
(void) fprintf(stderr,
"Sorry, user %s is not allowed to execute '%s%s%s' as %s on %s.\n",
user_name, user_cmnd, user_args ? " " : "",
user_args ? user_args : "", *user_runas, user_host);
user_args ? user_args : "",
list_pw ? list_pw->pw_name : *user_runas, user_host);
}
/*