2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-04 08:15:15 +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. * Default table of variables to check for '%' and '/' characters.
*/ */
static const char *initial_checkenv_table[] = { static const char *initial_checkenv_table[] = {
"LC_*", "COLORTERM",
"LANG", "LANG",
"LANGUAGE", "LANGUAGE",
"LC_*",
"LINGUAS",
"TERM", "TERM",
"COLORTERM",
NULL NULL
}; };
@@ -185,10 +186,17 @@ static const char *initial_checkenv_table[] = {
* Default table of variables to preserve in the environment. * Default table of variables to preserve in the environment.
*/ */
static const char *initial_keepenv_table[] = { static const char *initial_keepenv_table[] = {
"KRB5CCNAME", "COLORS",
"DISPLAY", "DISPLAY",
"HOSTNAME",
"KRB5CCNAME",
"LS_COLORS",
"MAIL",
"PATH", "PATH",
"PS1",
"PS2",
"TZ", "TZ",
"XAUTHORITY",
NULL NULL
}; };