diff options
author | Shawn Landden <slandden@gmail.com> | 2018-04-16 11:24:55 -0700 |
---|---|---|
committer | Shawn Landden <slandden@gmail.com> | 2018-04-17 08:28:43 -0700 |
commit | 6393f49cb1734e6085a9242eb12b603e68b7fa66 (patch) | |
tree | d2786ecbdb27d0684d24e5dcfc310971c53d6490 /src/serve.c | |
parent | a122536e8793cc8484997125d7da7ea740b84f63 (diff) | |
download | distcc-git-6393f49cb1734e6085a9242eb12b603e68b7fa66.tar.gz |
add error message for absolute path names (Bug #279)
Diffstat (limited to 'src/serve.c')
-rw-r--r-- | src/serve.c | 4 |
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) { |