]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2002-07-19 Roland McGrath <roland@frob.com>
authorRoland McGrath <roland@gnu.org>
Wed, 24 Jul 2002 23:03:46 +0000 (23:03 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 24 Jul 2002 23:03:46 +0000 (23:03 +0000)
* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
__libc_enable_secure is set.

hurd/hurdsig.c

index 0432c9ce901af5f793c424a322e82cdec78dd732..3de4d986b79a98bb14beca9c4f5eb7285655d01d 100644 (file)
@@ -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;