diff options
author | Craig Earls <enderw88@gmail.com> | 2014-04-08 09:20:29 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-04-08 09:20:29 -0700 |
commit | 7faaeb301fe524422c694e54fa36248ffedfa9b8 (patch) | |
tree | 633c370e2f51c1396d8f7acaa074dab7489c712d /src/stream.cc | |
parent | 69ae25eb630733657d213c3cd6c652506b9ccf27 (diff) | |
parent | fa641c581c3e2724d61fecd28fdb70f3dbb1beec (diff) | |
download | fork-ledger-7faaeb301fe524422c694e54fa36248ffedfa9b8.tar.gz fork-ledger-7faaeb301fe524422c694e54fa36248ffedfa9b8.tar.bz2 fork-ledger-7faaeb301fe524422c694e54fa36248ffedfa9b8.zip |
Merge commit 'fa641c581c3e2724d61fecd28fdb70f3dbb1beec'
Diffstat (limited to 'src/stream.cc')
-rw-r--r-- | src/stream.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/stream.cc b/src/stream.cc index fcd030b6..e4eb7800 100644 --- a/src/stream.cc +++ b/src/stream.cc @@ -80,18 +80,10 @@ namespace { close(pfd[1]); close(pfd[0]); - // Find command name: its the substring starting right of the - // rightmost '/' character in the pager pathname. See manpage for - // strrchr. -#if BOOST_VERSION >= 103700 - path basename(pager_path.filename()); -#else - path basename(pager_path.leaf()); -#endif - execlp(pager_path.string().c_str(), basename.string().c_str(), NULL); + execlp("/bin/sh", "/bin/sh", "-c", pager_path.string().c_str(), NULL); // We should never, ever reach here - perror((std::string("execlp: ") + pager_path.string()).c_str()); + perror("execlp: /bin/sh"); exit(1); } else { // parent |