summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstap-client6
1 files changed, 6 insertions, 0 deletions
diff --git a/stap-client b/stap-client
index f4ccb033..0ac9bd68 100755
--- a/stap-client
+++ b/stap-client
@@ -659,6 +659,12 @@ function staprun_PATH {
# staprun may invoke 'stap'. So we can use the current PATH if we were
# not invoked as 'stap' or we are not the first 'stap' on the PATH.
local first_stap=`which stap 2>/dev/null`
+
+ if test "X$first_stap" = "X"; then
+ echo "$PATH"
+ return
+ fi
+
if test `which $0 2>/dev/null` != $first_stap; then
echo "$PATH"
return