From 34e212784c87edcc9c06058db9685db313c3126a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 30 Apr 2006 16:08:10 +0000 Subject: * elf/ldd.bash.in: If --verify loop fails to find a dynamic linker for the file don't just try the first one listed in RTLDLIST again. We already have the status. --- elf/ldd.bash.in | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'elf/ldd.bash.in') diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in index a22ad15..d1591a5 100644 --- a/elf/ldd.bash.in +++ b/elf/ldd.bash.in @@ -154,6 +154,7 @@ for file do test -x "$file" || echo 'ldd:' $"\ warning: you do not have execution permission for" "\`$file'" >&2 RTLD= + ret=1 for rtld in ${RTLDLIST}; do if test -x $rtld; then verify_out=`${rtld} --verify "$file"` @@ -163,12 +164,6 @@ warning: you do not have execution permission for" "\`$file'" >&2 esac fi done - if test -z "${RTLD}"; then - set ${RTLDLIST} - RTLD=$1 - verify_out=`${RTLD} --verify "$file"` - ret=$? - fi case $ret in 0) # If the program exits with exit code 5, it means the process has been -- cgit v1.1