From 15ae8a35fba961089ec3bec46a8e7c09b1e6c2f8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 16:25:03 +0200 Subject: Restrict exe{} search to PATH when importing --- build2/file.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2') diff --git a/build2/file.cxx b/build2/file.cxx index 8b86d74..031790f 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -1167,7 +1167,9 @@ namespace build2 n += *tk.ext; } - process_path pp (process::try_path_search (n, true)); + // Only search in PATH (or CWD). + // + process_path pp (process::try_path_search (n, true, dir_path (), true)); if (!pp.empty ()) { -- cgit v1.1