diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-08 23:34:25 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-08 23:34:25 +0100 |
commit | f4ba7c13533b7e99edd0e66a0f6ccd6c0f55ec38 (patch) | |
tree | 3fdabe20037596c869776f1bff6c4bd3b8e058f0 /util.cxx | |
parent | 8cabc8bcdcd22e8726734f1a18f23ed7d9c19e9f (diff) | |
parent | 63b4fd1474ec5859fac4c9b710c8f466bcd3b0f7 (diff) | |
download | systemtap-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.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |