Blame SOURCES/glibc-rh713134.patch

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