diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-16 16:44:50 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-17 23:54:24 +0300 |
commit | fdd72db7512ecd2410e9ddcb144abea23d67b2c7 (patch) | |
tree | 692307fdc473a7bb52267d46b44ebb835800e73f /bpkg/openssl.cxx | |
parent | e0efe0475bed89b6d60a04ce63dbc061e553bd59 (diff) |
Audit all print_process()/process ctor for path_search()
Diffstat (limited to 'bpkg/openssl.cxx')
-rw-r--r-- | bpkg/openssl.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bpkg/openssl.cxx b/bpkg/openssl.cxx index 4e795cb..a17ae73 100644 --- a/bpkg/openssl.cxx +++ b/bpkg/openssl.cxx @@ -34,16 +34,18 @@ namespace bpkg args.insert (args.end (), options.begin (), options.end ()); args.push_back (nullptr); - if (verb >= 2) - print_process (args); - try { + process_path pp (process::path_search (args[0])); + + if (verb >= 2) + print_process (args); + // If the caller is interested in reading STDOUT and STDERR, then // redirect STDERR to STDOUT, so both can be read from the same stream. // return process ( - args.data (), in ? -1 : 0, out ? -1 : 1, err ? (out ? 1 : -1): 2); + pp, args.data (), in ? -1 : 0, out ? -1 : 1, err ? (out ? 1 : -1): 2); } catch (const process_error& e) { |