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

Add LINGUAS to initial_checkenv_table.

Add COLORS, HOSTNAME, LS_COLORS, MAIL, PS1, PS2, XAUTHORITY
to intial_keepenv_table.
This commit is contained in:
Todd C. Miller
2007-06-18 21:33:22 +00:00
parent c225668972
commit 5ac9f1de51

14
env.c
View File

@@ -173,11 +173,12 @@ static const char *initial_badenv_table[] = {
* Default table of variables to check for '%' and '/' characters.
*/
static const char *initial_checkenv_table[] = {
"LC_*",
"COLORTERM",
"LANG",
"LANGUAGE",
"LC_*",
"LINGUAS",
"TERM",
"COLORTERM",
NULL
};
@@ -185,10 +186,17 @@ static const char *initial_checkenv_table[] = {
* Default table of variables to preserve in the environment.
*/
static const char *initial_keepenv_table[] = {
"KRB5CCNAME",
"COLORS",
"DISPLAY",
"HOSTNAME",
"KRB5CCNAME",
"LS_COLORS",
"MAIL",
"PATH",
"PS1",
"PS2",
"TZ",
"XAUTHORITY",
NULL
};