diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-02-12 12:40:55 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-02-12 12:44:52 -0600 |
commit | 7eaf71176b87ae69bfa622aa621341a19a9d32b0 (patch) | |
tree | 29a711a75cf61a8f6103c29a71c3c5cf5c0cd5e5 /src/rc | |
parent | 2c1f6a16e10a45397e0872585dcb0e16684b6cbf (diff) |
Fix rc_env_allow wildcard usage
Before this commit, using * in rc_env_allow did not work.
This fixes #60.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/rc-misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index f2967dd1..82f1b780 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -68,6 +68,12 @@ env_filter(void) /* Add the user defined list of vars */ env_allow = rc_stringlist_split(rc_conf_value("rc_env_allow"), " "); + /* + * If '*' is an entry in rc_env_allow, do nothing as we are to pass + * through all environment variables. + */ + if (rc_stringlist_find(env_allow, "*")) + return; profile = rc_config_load(RC_PROFILE_ENV); /* Copy the env and work from this so we can manipulate it safely */ |