olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-fedora-ldd.patch

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