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

Fix expansion of %p in the prompt for "sudo -l" when rootpw, runaspw

or targetpw is set.  Bug #639
This commit is contained in:
Todd C. Miller
2014-03-19 16:55:37 -06:00
parent 122257e095
commit 3cdb944de4
3 changed files with 5 additions and 15 deletions

View File

@@ -236,7 +236,7 @@ int check_user(int validate, int mode);
bool user_is_exempt(void);
/* prompt.c */
char *expand_prompt(const char *old_prompt, const char *user, const char *host);
char *expand_prompt(const char *old_prompt, const char *auth_user);
/* timestamp.c */
void remove_timestamp(bool);