diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-04 12:32:16 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-04 15:14:15 -0600 |
commit | 53bc986ce5f9725d7117356e28224ac898f9c9bf (patch) | |
tree | b8f0c150d0cd5f3a2fafcf9271ad4d1fabf027ae | |
parent | 981d2b3308edb0d0a68f7bdce4f2c99110de6940 (diff) |
Clean default env_whitelist
The whitelist of environment variables we pass to service scripts
included several unnecessary variables.
The default whitelist now includes EERROR_QUIET, EINFO_QUIET,
IN_BACKGROUND and IN_HOTPLUG.
X-Gentoo-Bug: 569542
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=569542
-rw-r--r-- | src/rc/rc-misc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index bb401e13..dbdac685 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -48,12 +48,8 @@ rc_conf_yesno(const char *setting) } static const char *const env_whitelist[] = { - "CONSOLE", "PATH", "SHELL", "USER", "HOME", "TERM", - "LANG", "LC_CTYPE", "LC_NUMERIC", "LC_TIME", "LC_COLLATE", - "LC_MONETARY", "LC_MESSAGES", "LC_PAPER", "LC_NAME", "LC_ADDRESS", - "LC_TELEPHONE", "LC_MEASUREMENT", "LC_IDENTIFICATION", "LC_ALL", - "IN_HOTPLUG", "IN_BACKGROUND", "RC_INTERFACE_KEEP_CONFIG", "EERROR_QUIET", "EINFO_QUIET", + "IN_BACKGROUND", "IN_HOTPLUG", NULL }; |