[PATCH 2/2] Remove dl-librecon.h header. (original) (raw)
Florian Weimer fweimer@redhat.com
Mon Feb 28 19:11:39 GMT 2022
- Previous message (by thread): [PATCH 2/2] Remove dl-librecon.h header.
- Next message (by thread): [PATCH] or1k: Define PI_STATIC_AND_HIDDEN
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Adhemerval Zanella via Libc-alpha:
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
- Previous message (by thread): [PATCH 2/2] Remove dl-librecon.h header.
- Next message (by thread): [PATCH] or1k: Define PI_STATIC_AND_HIDDEN
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]