about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-08 00:09:54 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-08 00:09:54 +0000
commit17f6d8b916f74bf176583d21ff9329a8987ab09e (patch)
tree2b4b0b88fdc64c88e7b144e3690bf25a8b53123c /resolv
parent9395e8892d918c4e00b571ae7efeea4b4b7d5e7b (diff)
downloadglibc-17f6d8b916f74bf176583d21ff9329a8987ab09e.tar.gz
glibc-17f6d8b916f74bf176583d21ff9329a8987ab09e.tar.xz
glibc-17f6d8b916f74bf176583d21ff9329a8987ab09e.zip
Update.
1999-02-08  Ulrich Drepper  <drepper@cygnus.com>

	* resolv/res_hconf.c (_res_hconf_init): Don't use ENV_HOSTCONF for
	SUID binaries.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_hconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index c7aee65e59..3905360d50 100644
--- a/resolv/res_hconf.c
+++ b/resolv/res_hconf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
    Contributed by David Mosberger (davidm@azstarnet.com).
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -320,7 +320,7 @@ _res_hconf_init (void)
 
   memset (&_res_hconf, '\0', sizeof (_res_hconf));
 
-  hconf_name = getenv (ENV_HOSTCONF);
+  hconf_name = __secure_getenv (ENV_HOSTCONF);
   if (hconf_name == NULL)
     hconf_name = _PATH_HOSTCONF;