aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-unpack.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-16 16:44:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-17 23:54:24 +0300
commitfdd72db7512ecd2410e9ddcb144abea23d67b2c7 (patch)
tree692307fdc473a7bb52267d46b44ebb835800e73f /bpkg/pkg-unpack.cxx
parente0efe0475bed89b6d60a04ce63dbc061e553bd59 (diff)
Audit all print_process()/process ctor for path_search()
Diffstat (limited to 'bpkg/pkg-unpack.cxx')
-rw-r--r--bpkg/pkg-unpack.cxx10
1 files changed, 6 insertions, 4 deletions
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