fa3bfd
Upstream commit:
29e444
fa3bfd
commit eedca9772e99c72ab4c3c34e43cc764250aa3e3c (HEAD -> master)
fa3bfd
Author: Andreas Schwab <schwab@suse.de>
fa3bfd
Date:   Wed Aug 16 15:59:55 2017 +0200
29e444
fa3bfd
    ldd: never run file directly
29e444
12745e
--- glibc-2.17-c758a686/elf/ldd.bash.in
12745e
+++ glibc-2.17-c758a686/elf/ldd.bash.in
29e444
@@ -166,18 +166,6 @@ warning: you do not have execution permission for" "\`$file'" >&2
29e444
       fi
29e444
     done
29e444
     case $ret in
29e444
-    0)
29e444
-      # If the program exits with exit code 5, it means the process has been
29e444
-      # invoked with __libc_enable_secure.  Fall back to running it through
29e444
-      # the dynamic linker.
29e444
-      try_trace "$file"
29e444
-      rc=$?
29e444
-      if [ $rc = 5 ]; then
29e444
-	try_trace "$RTLD" "$file"
29e444
-	rc=$?
29e444
-      fi
29e444
-      [ $rc = 0 ] || result=1
29e444
-      ;;
29e444
     1)
29e444
       # This can be a non-ELF binary or no binary at all.
29e444
       nonelf "$file" || {
29e444
@@ -185,7 +173,7 @@ warning: you do not have execution permission for" "\`$file'" >&2
29e444
 	result=1
29e444
       }
29e444
       ;;
29e444
-    2)
29e444
+    0|2)
29e444
       try_trace "$RTLD" "$file" || result=1
29e444
       ;;
29e444
     *)