Skip to content
Permalink
Browse files

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

  • Loading branch information...
shawnl committed Jun 1, 2019
1 parent 2f5f920 commit 34d864e30b724271cf4ac4ce8319254096e9713f
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 34d864e

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