commit: 373c81e05db464d82d9f667871d682b36804de15 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Nov 3 04:50:10 2021 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Nov 3 04:50:10 2021 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=373c81e0
sandbox: fix passing of config env vars down This code has been buggy since it was first added years ago -- it would read the right value out of the config file, but then always just set $SANDBOX_VERBOSE to it instead of the right env var. This prevented the basic loading of sandbox settings from sandbox.conf. Bug: https://bugs.gentoo.org/821403 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> src/environ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environ.c b/src/environ.c index 542dd64..ecff0dc 100644 --- a/src/environ.c +++ b/src/environ.c @@ -96,7 +96,7 @@ static void setup_cfg_var(const char *env_var) * environment if not already present. */ config = rc_get_cnf_entry(sb_conf_file(), env_var, NULL); if (NULL != config) { - setenv(ENV_SANDBOX_VERBOSE, config, 0); + setenv(env_var, config, 0); free(config); } }
