Blame SOURCES/glibc-fedora-ldd.patch

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