From d52261ec3e39326ebc7c571487f0a443903072af Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Fri, 12 Sep 2008 15:05:38 -0400 Subject: Ensure $first_stap is not empty in staprun_PATH --- stap-client | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit