From: Stefan Metzmacher Date: Fri, 18 May 2007 09:47:53 +0000 (+0000) Subject: r22997: only if the output of which has a leading '/' the output is useful... X-Git-Tag: talloc-1.0.1~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a66d8e84f7130d3b838e9b0ded68cbc386e6d938;p=thirdparty%2Fsamba.git r22997: only if the output of which has a leading '/' the output is useful... metze --- diff --git a/source/script/gdb_backtrace b/source/script/gdb_backtrace index b19a5b2f4b7..826381e9008 100755 --- a/source/script/gdb_backtrace +++ b/source/script/gdb_backtrace @@ -33,7 +33,7 @@ case "${UNAME}" in esac for DB in ${DB_LIST}; do - DB_BIN=`which ${DB} 2>/dev/null` + DB_BIN=`which ${DB} 2>/dev/null | grep '^/'` test x"${DB_BIN}" != x"" && { break }