aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-03 00:50:10 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-03 00:50:10 -0400
commit373c81e05db464d82d9f667871d682b36804de15 (patch)
tree044bbed623c8e98b80805b1db32c6a9355c9b67f
parentbump to sandbox-3.1 (diff)
downloadsandbox-373c81e05db464d82d9f667871d682b36804de15.tar.gz
sandbox-373c81e05db464d82d9f667871d682b36804de15.tar.bz2
sandbox-373c81e05db464d82d9f667871d682b36804de15.zip
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@gentoo.org>
-rw-r--r--src/environ.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}