For sudoedit, run the editor with the user's original environment

as per the documentation (and as in sudo 1.7.x).  Bug #688
This commit is contained in:
Todd C. Miller
2015-03-16 20:19:24 -06:00
parent d8d6fae793
commit be4872f691
3 changed files with 36 additions and 14 deletions

View File

@@ -324,6 +324,7 @@ char *expand_iolog_path(const char *prefix, const char *dir, const char *file,
/* env.c */
char **env_get(void);
bool env_merge(char * const envp[]);
bool env_swap_old(void);
void env_init(char * const envp[]);
void init_envtables(void);
bool insert_env_vars(char * const envp[]);