diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 16:25:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 16:25:49 +0200 |
commit | 05a398f967bb030c6dbb9d6458340767325e46f4 (patch) | |
tree | fd4699b38809a9a24b0ee317a15f61118aa7b3e5 /libbutl/process.ixx | |
parent | 822059e4e69547f8e97a1cd219912f55826b0414 (diff) |
Add ability to restrict executable search to PATH only
Diffstat (limited to 'libbutl/process.ixx')
-rw-r--r-- | libbutl/process.ixx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libbutl/process.ixx b/libbutl/process.ixx index 4bdd438..1f1a2f4 100644 --- a/libbutl/process.ixx +++ b/libbutl/process.ixx @@ -90,9 +90,9 @@ namespace butl #endif inline process_path process:: - path_search (const char*& a0, const dir_path& fb) + path_search (const char*& a0, const dir_path& fb, bool po) { - process_path r (path_search (a0, true, fb)); + process_path r (path_search (a0, true, fb, po)); if (!r.recall.empty ()) { @@ -104,27 +104,27 @@ namespace butl } inline process_path process:: - path_search (const std::string& f, bool i, const dir_path& fb) + path_search (const std::string& f, bool i, const dir_path& fb, bool po) { - return path_search (f.c_str (), i, fb); + return path_search (f.c_str (), i, fb, po); } inline process_path process:: - path_search (const path& f, bool i, const dir_path& fb) + path_search (const path& f, bool i, const dir_path& fb, bool po) { - return path_search (f.string ().c_str (), i, fb); + return path_search (f.string ().c_str (), i, fb, po); } inline process_path process:: - try_path_search (const std::string& f, bool i, const dir_path& fb) + try_path_search (const std::string& f, bool i, const dir_path& fb, bool po) { - return try_path_search (f.c_str (), i, fb); + return try_path_search (f.c_str (), i, fb, po); } inline process_path process:: - try_path_search (const path& f, bool i, const dir_path& fb) + try_path_search (const path& f, bool i, const dir_path& fb, bool po) { - return try_path_search (f.string ().c_str (), i, fb); + return try_path_search (f.string ().c_str (), i, fb, po); } inline process:: |