Move expand_prompt() into its own source file for easier unit testing.

This commit is contained in:
Todd C. Miller
2012-10-23 14:27:52 -04:00
parent 0a7af23038
commit 2b23d2b12c
5 changed files with 187 additions and 134 deletions

View File

@@ -230,11 +230,13 @@ bool sudo_goodpath(const char *, struct stat *);
int find_path(char *, char **, struct stat *, char *, int);
/* check.c */
int check_user(int, int);
int check_user(int validate, int mode);
bool user_is_exempt(void);
char *expand_prompt(char *old_prompt, char *user, char *host);
/* timestamp.c */
void remove_timestamp(bool);
bool set_lectured(void);
/* sudo_auth.c */
int verify_user(struct passwd *pw, char *prompt, int validated);