[PATCH 2/2] Remove dl-librecon.h header. (original) (raw)

Florian Weimer fweimer@redhat.com
Mon Feb 28 19:11:39 GMT 2022


diff --git a/elf/dl-support.c b/elf/dl-support.c index 1d648ce3a6..fa9fcdbe5a 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c

@@ -370,15 +367,9 @@ dlnondynamicinit (void)

_if (libcenablesecure) { - static const char unsecureenvvars[] = - UNSECUREENVVARS -#ifdef EXTRAUNSECUREENVVARS - EXTRAUNSECUREENVVARS -#endif - ; - const char *cp = unsecureenvvars; + const char *cp = UNSECUREENVVARS; - while (cp < unsecureenvvars + sizeof (unsecureenvvars)) + while (cp < UNSECUREENVVARS + sizeof (UNSECUREENVVARS)) { _unsetenv (cp); _cp = (const char *) rawmemchr (cp, '\0') + 1;

Please keep unsecure_envvars. I think C does not guarantee that there is just one array for UNSECURE_ENVVARS.

Rest looks okay to me.

Thanks, Florian



More information about the Libc-alpha mailing list