From fdd72db7512ecd2410e9ddcb144abea23d67b2c7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Sep 2016 16:44:50 +0300 Subject: Audit all print_process()/process ctor for path_search() --- bpkg/pkg-unpack.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bpkg/pkg-unpack.cxx') diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx index 53c3faf..44ee7ba 100644 --- a/bpkg/pkg-unpack.cxx +++ b/bpkg/pkg-unpack.cxx @@ -188,12 +188,14 @@ namespace bpkg args.push_back (a.string ().c_str ()); args.push_back (nullptr); - if (verb >= 2) - print_process (args); - try { - process pr (args.data ()); + process_path pp (process::path_search (args[0])); + + if (verb >= 2) + print_process (args); + + process pr (pp, args.data ()); // While it is reasonable to assuming the child process issued // diagnostics, tar, specifically, doesn't mention the archive -- cgit v1.1