From: Ulrich Drepper Date: Thu, 27 Aug 1998 20:52:37 +0000 (+0000) Subject: (process_envvars): Only use LD_ORIGIN_PATH if !enable secure. X-Git-Tag: cvs/glibc-2_0_96~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45769315c5deb6e9c9f0ac6dc2cd9e5460f8e16d;p=thirdparty%2Fglibc.git (process_envvars): Only use LD_ORIGIN_PATH if !enable secure. --- diff --git a/elf/rtld.c b/elf/rtld.c index 600f062b3ca..283ea7e2a7c 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -1167,7 +1167,8 @@ process_envvars (enum mode *modep, int *lazyp) case 11: /* Path where the binary is found. */ - if (memcmp (&envline[3], "ORIGIN_PATH", 11) == 0) + if (!__libc_enable_secure + && memcmp (&envline[3], "ORIGIN_PATH", 11) == 0) _dl_hwcap_mask = strtoul (&envline[15], NULL, 0); break;