summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Landden <slandden@gmail.com>2018-02-27 07:42:36 -0800
committerGitHub <noreply@github.com>2018-02-27 07:42:36 -0800
commitec7db3c3509b5d92bae9c7fe55c9edb749dfb794 (patch)
tree93a64184fdf80bc6df180cfbcc8ba15bd82f2aff
parent2488c28d7f08bdfe3ad558f321d383d633a55699 (diff)
downloaddistcc-git-ec7db3c3509b5d92bae9c7fe55c9edb749dfb794.tar.gz
serve: have DISTCC_CMDLIST feature turns off access (#255)
the not-very-used DISTCC_CMDLIST feature has its own whitelist. Do not double-whitelist, which would be frustrating
-rw-r--r--src/serve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serve.c b/src/serve.c
index d998003..896ad13 100644
--- a/src/serve.c
+++ b/src/serve.c
@@ -708,7 +708,9 @@ static int dcc_run_job(int in_fd,
if ((ret = dcc_check_compiler_masq(argv[0])))
goto out_cleanup;
- if (!opt_make_me_a_botnet && dcc_check_compiler_whitelist(argv[0]))
+ if (!opt_make_me_a_botnet &&
+ !getenv("DISTCC_CMDLIST") &&
+ dcc_check_compiler_whitelist(argv[0]))
goto out_cleanup;
if ((compile_ret = dcc_spawn_child(argv, &cc_pid,