From: Roland McGrath Date: Wed, 24 Jul 2002 23:03:46 +0000 (+0000) Subject: 2002-07-19 Roland McGrath X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dde0c3d1ab3f8ef8ddcc03f902a5546e101d464;p=thirdparty%2Fglibc.git 2002-07-19 Roland McGrath * hurd/hurdsig.c (_hurdsig_getenv): Always return null if __libc_enable_secure is set. --- diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 0432c9ce901..3de4d986b79 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -1348,6 +1348,9 @@ text_set_element (_hurd_reauth_hook, reauth_proc); const char * _hurdsig_getenv (const char *variable) { + if (__libc_enable_secure) + return NULL; + if (_hurdsig_catch_memory_fault (__environ)) /* We bombed in getenv. */ return NULL;