From 05a398f967bb030c6dbb9d6458340767325e46f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 16:25:49 +0200 Subject: Add ability to restrict executable search to PATH only --- libbutl/process.ixx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libbutl/process.ixx') 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:: -- cgit v1.1