Blame SOURCES/glibc-rh713134.patch

b40826
2011-03-18  Andreas Schwab  <schwab@redhat.com>
b40826
b40826
	* elf/ldd.bash.in: Never run file directly.
b40826
b40826
Index: glibc-2.12-2-gc4ccff1/elf/ldd.bash.in
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/elf/ldd.bash.in
b40826
+++ glibc-2.12-2-gc4ccff1/elf/ldd.bash.in
b40826
@@ -167,18 +167,6 @@ warning: you do not have execution permi
b40826
       fi
b40826
     done
b40826
     case $ret in
b40826
-    0)
b40826
-      # If the program exits with exit code 5, it means the process has been
b40826
-      # invoked with __libc_enable_secure.  Fall back to running it through
b40826
-      # the dynamic linker.
b40826
-      try_trace "$file"
b40826
-      rc=$?
b40826
-      if [ $rc = 5 ]; then
b40826
-	try_trace "$RTLD" "$file"
b40826
-	rc=$?
b40826
-      fi
b40826
-      [ $rc = 0 ] || result=1
b40826
-      ;;
b40826
     1)
b40826
       # This can be a non-ELF binary or no binary at all.
b40826
       nonelf "$file" || {
b40826
@@ -186,7 +174,7 @@ warning: you do not have execution permi
b40826
 	result=1
b40826
       }
b40826
       ;;
b40826
-    2)
b40826
+    0|2)
b40826
       try_trace "$RTLD" "$file" || result=1
b40826
       ;;
b40826
     *)