about summary refs log tree commit diff
path: root/elf/ldd.bash.in
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-08-16 15:59:55 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-16 15:59:55 +0200
commiteedca9772e99c72ab4c3c34e43cc764250aa3e3c (patch)
treeb65b8a5b44c2900eb545aa4c89817cfe4002dc9c /elf/ldd.bash.in
parentf59f7adb4a00b7784cab1becdf257366104587b7 (diff)
downloadglibc-eedca9772e99c72ab4c3c34e43cc764250aa3e3c.tar.gz
glibc-eedca9772e99c72ab4c3c34e43cc764250aa3e3c.tar.xz
glibc-eedca9772e99c72ab4c3c34e43cc764250aa3e3c.zip
ldd: never run file directly
Diffstat (limited to 'elf/ldd.bash.in')
-rw-r--r--elf/ldd.bash.in14
1 files changed, 1 insertions, 13 deletions
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 7dd1fccf24..686785e235 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -164,18 +164,6 @@ warning: you do not have execution permission for" "\`$file'" >&2
       fi
     done
     case $ret in
-    0)
-      # If the program exits with exit code 5, it means the process has been
-      # invoked with __libc_enable_secure.  Fall back to running it through
-      # the dynamic linker.
-      try_trace "$file"
-      rc=$?
-      if [ $rc = 5 ]; then
-	try_trace "$RTLD" "$file"
-	rc=$?
-      fi
-      [ $rc = 0 ] || result=1
-      ;;
     1)
       # This can be a non-ELF binary or no binary at all.
       nonelf "$file" || {
@@ -183,7 +171,7 @@ warning: you do not have execution permission for" "\`$file'" >&2
 	result=1
       }
       ;;
-    2)
+    0|2)
       try_trace "$RTLD" "$file" || result=1
       ;;
     *)