[PATCH] resolv/resolv.h: allow alternative resolv.conf files
Florian Weimer
fweimer@redhat.com
Thu Aug 17 16:13:00 GMT 2017
On 08/17/2017 04:32 PM, Renzo Davoli wrote:
>> _PATH_RESCONF really has to be a string literal, and you can't use a GNU
>> C extension in such a way in an installed header file.
>>
>> The environment variable would have to be ignored in AT_SECURE mode, so
>> you have to use __libc_secure_getenv or put it into unsecvars.h.
>
> Here is a different implementation:
> * it does not use any gcc extension
> * use __libc_secure_getenv instead of getenv
> * do not change installed header files.
That's certainly better. Do you have an example of another system which
offers a similar environment variable?
Thanks,
Florian
More information about the Libc-alpha
mailing list