about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-08 19:52:13 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-08 19:52:13 +0000
commit0a21e40021389dd9beccafae597fd931e355f7cd (patch)
tree54075907e6e0d93d192e8cce65d5ec1c666562b4
parentdb67c2c98b89a5723af44df54f38b779de8d4a65 (diff)
downloadglibc-0a21e40021389dd9beccafae597fd931e355f7cd.tar.gz
glibc-0a21e40021389dd9beccafae597fd931e355f7cd.tar.xz
glibc-0a21e40021389dd9beccafae597fd931e355f7cd.zip
* elf/rtld.c (process_envvars): Fix handling of LD_POINTER_GUARD.
	Reported by genesh@comcast.net.
-rw-r--r--ChangeLog3
-rw-r--r--elf/rtld.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed170f494a..c631a1b0bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-04-08  Ulrich Drepper  <drepper@redhat.com>
 
+	* elf/rtld.c (process_envvars): Fix handling of LD_POINTER_GUARD.
+	Reported by genesh@comcast.net.
+
 	* io/fts.c (fts_build): Call fts_lfree in the two error cases
 	after the loop [Coverity CID 187].
 
diff --git a/elf/rtld.c b/elf/rtld.c
index 68fe809700..9a21b8bc6f 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2624,7 +2624,7 @@ process_envvars (enum mode *modep)
 	    }
 
 	  if (memcmp (envline, "POINTER_GUARD", 13) == 0)
-	    GLRO(dl_pointer_guard) = envline[14] == '0';
+	    GLRO(dl_pointer_guard) = envline[14] != '0';
 	  break;
 
 	case 14: