diff options
author | Roland McGrath <roland@gnu.org> | 2002-07-24 23:05:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-07-24 23:05:17 +0000 |
commit | a753ffb296bb8c18c876d978e5878e6bd3538d2c (patch) | |
tree | f129ee422920131343bdcfa094646d81b6f37f4a /hurd | |
parent | 7f1deee65e0a90d9e6699068b5d63a28d2546e12 (diff) | |
download | glibc-a753ffb296bb8c18c876d978e5878e6bd3538d2c.zip glibc-a753ffb296bb8c18c876d978e5878e6bd3538d2c.tar.gz glibc-a753ffb296bb8c18c876d978e5878e6bd3538d2c.tar.bz2 |
* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
__libc_enable_secure is set.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdsig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 1bfc093..2507a8b 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; |