summaryrefslogtreecommitdiffstats
path: root/util.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-08 23:34:25 +0100
committerTim Moore <timoore@redhat.com>2009-12-08 23:34:25 +0100
commitf4ba7c13533b7e99edd0e66a0f6ccd6c0f55ec38 (patch)
tree3fdabe20037596c869776f1bff6c4bd3b8e058f0 /util.cxx
parent8cabc8bcdcd22e8726734f1a18f23ed7d9c19e9f (diff)
parent63b4fd1474ec5859fac4c9b710c8f466bcd3b0f7 (diff)
downloadsystemtap-steved-f4ba7c13533b7e99edd0e66a0f6ccd6c0f55ec38.tar.gz
systemtap-steved-f4ba7c13533b7e99edd0e66a0f6ccd6c0f55ec38.tar.xz
systemtap-steved-f4ba7c13533b7e99edd0e66a0f6ccd6c0f55ec38.zip
Merge commit 'origin/master'
Diffstat (limited to 'util.cxx')
-rw-r--r--util.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.cxx b/util.cxx
index bffeb04e..736e5a30 100644
--- a/util.cxx
+++ b/util.cxx
@@ -244,7 +244,7 @@ tokenize(const string& str, vector<string>& tokens,
// same policy as execvp(). A program name not containing a slash
// will be searched along the $PATH.
-string find_executable(const string& name)
+string find_executable(const string& name, const string& env_path)
{
string retpath;
@@ -259,7 +259,7 @@ string find_executable(const string& name)
}
else // Nope, search $PATH.
{
- char *path = getenv("PATH");
+ char *path = getenv(env_path.c_str());
if (path)
{
// Split PATH up.