summaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-12-08 10:57:20 +0000
committerJakub Jelinek <jakub@redhat.com>2004-12-08 10:57:20 +0000
commitfd74fc86fddfd1dbf64904a64d026d37c032c0ba (patch)
treeb9e3741cc509cf076bd2d4f159bb8a6e7f3d1f5c /elf/rtld.c
parentff4eb01a424875d6ff9183c4f4f42d17743fee77 (diff)
* elf/ldd.bash.in: For -u, set bind_now=yes.cvs/fedora-glibc-2_3_3-89
If eval $add_env '"$file"' exits with exitcode 5, retry with eval $add_env \${RTLD} '"$file"'. Remove | cat usage, it breaks exit code propagation. * elf/rtld.c (process_envvars): If __libc_enable_secure and mode != normal, exit with exitcode 5.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 45c65af904..ee7291477f 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2377,9 +2377,11 @@ process_envvars (enum mode *modep)
if (__access ("/etc/suid-debug", F_OK) != 0)
{
unsetenv ("MALLOC_CHECK_");
- if (mode == normal)
- GLRO(dl_debug_mask) = 0;
+ GLRO(dl_debug_mask) = 0;
}
+
+ if (mode != normal)
+ _exit (5);
}
/* If we have to run the dynamic linker in debugging mode and the
LD_DEBUG_OUTPUT environment variable is given, we write the debug