From 7427077b98f8580e810bb4c992ae5628410f193e Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 9 Jun 2021 09:31:16 +0300 Subject: Don't look into cwd when searching for the pp-setup file. * src/preproc.c (grecs_preproc_run): Change arguments in a call to grecs_find_include_file --- src/preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preproc.c b/src/preproc.c index 1d26a51..8cb1413 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -682,7 +682,7 @@ grecs_preproc_run(const char *config_file, const char *extpp) char *setup_file; char *cmd = NULL; - setup_file = grecs_find_include_file("pp-setup", 1); + setup_file = grecs_find_include_file("pp-setup", 0); if (setup_file) { size_t size = 0; if (grecs_asprintf(&cmd, &size, -- cgit v1.2.1