From a753ffb296bb8c18c876d978e5878e6bd3538d2c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 24 Jul 2002 23:05:17 +0000 Subject: * hurd/hurdsig.c (_hurdsig_getenv): Always return null if __libc_enable_secure is set. --- hurd/hurdsig.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hurd') diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 1bfc093528..2507a8b8a9 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -1358,6 +1358,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; -- cgit 1.4.1