diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 16:25:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 16:25:03 +0200 |
commit | 15ae8a35fba961089ec3bec46a8e7c09b1e6c2f8 (patch) | |
tree | 2b110e3f88cb5d53c6b249f2333f472d330e343c | |
parent | 9b1d73b31cf3f137336d59dfd3a9e7caa073c8e3 (diff) |
Restrict exe{} search to PATH when importing
-rw-r--r-- | build2/file.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ()) { |