Skip to content
Permalink
Browse files

report warning when -fplugin or -specs passed Closes: distcc#343

  • Loading branch information...
shawnl committed Jun 1, 2019
1 parent 18efcaf commit b07730d23c67f0ab0d79933b156cd33be888a61b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/serve.c
@@ -769,8 +769,10 @@ static int dcc_run_job(int in_fd,
int i;
for (i = 0; (a = argv[i]); i++)
if (strncmp(a, "-fplugin=", strlen("-fplugin=")) == 0 ||
strncmp(a, "-specs=", strlen("-specs=")) == 0)
strncmp(a, "-specs=", strlen("-specs=")) == 0) {
rs_log_warning("-fplugin= and/or -specs= passed, which are insecure and not supported.");
goto out_cleanup;
}

if ((compile_ret = dcc_spawn_child(argv, &cc_pid,
"/dev/null", out_fname, err_fname))

0 comments on commit b07730d

Please sign in to comment.
You can’t perform that action at this time.