summaryrefslogtreecommitdiff
path: root/src/serve.c
diff options
context:
space:
mode:
authorShawn Landden <slandden@gmail.com>2018-04-16 11:24:55 -0700
committerShawn Landden <slandden@gmail.com>2018-04-17 08:28:43 -0700
commit6393f49cb1734e6085a9242eb12b603e68b7fa66 (patch)
treed2786ecbdb27d0684d24e5dcfc310971c53d6490 /src/serve.c
parenta122536e8793cc8484997125d7da7ea740b84f63 (diff)
downloaddistcc-git-6393f49cb1734e6085a9242eb12b603e68b7fa66.tar.gz
add error message for absolute path names (Bug #279)
Diffstat (limited to 'src/serve.c')
-rw-r--r--src/serve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serve.c b/src/serve.c
index c71e7f3..3a966a3 100644
--- a/src/serve.c
+++ b/src/serve.c
@@ -372,8 +372,10 @@ static int dcc_check_compiler_whitelist(char *compiler_name)
{
int dirfd = -1;
- if (strchr(compiler_name, '/'))
+ if (strchr(compiler_name, '/')) {
+ rs_log_crit("compiler name <%s> cannot be an absolute path (or must pass --make-me-a-botnet)", compiler_name);
return EXIT_BAD_ARGUMENTS;
+ }
dirfd = open("/usr/lib/distcc", O_RDONLY);
if (dirfd < 0) {