diff options
Diffstat (limited to 'src/serve.c')
-rw-r--r-- | src/serve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serve.c b/src/serve.c index c5ba473..b7fdac6 100644 --- a/src/serve.c +++ b/src/serve.c @@ -405,6 +405,7 @@ static int dcc_check_compiler_whitelist(char *_compiler_name) char *compiler_path = NULL; if (asprintf(&compiler_path, "/usr/lib/distcc/%s", compiler_name) && compiler_path) { if (access(compiler_path, X_OK) < 0) { + close(dirfd); rs_log_crit("%s not in %s or %s whitelist.", compiler_name, LIBDIR "/distcc", "/usr/lib/distcc"); return EXIT_BAD_ARGUMENTS; /* ENOENT, EACCESS, etc */ } @@ -412,6 +413,8 @@ static int dcc_check_compiler_whitelist(char *_compiler_name) } } + close(dirfd); + rs_trace("%s in" LIBDIR "/distcc whitelist", compiler_name); return 0; #else |