r22998: merge from SAMBA_4_0:
authorStefan Metzmacher <metze@samba.org>
Fri, 18 May 2007 09:50:56 +0000 (09:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:13 +0000 (12:22 -0500)
only if the output of which has a leading '/' the output is useful...

metze

source/script/tests/gdb_backtrace

index b19a5b2f4b7933cd3165406871bcc64182b96bb6..826381e9008ad9256c2a6a301d1b1b34e79c5e94 100755 (executable)
@@ -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
        }