This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] res_conf.h missing security feature


Seems this fix didn't make it throught the resolv migration in glibc 2.2

2001-01-08  Ben Collins  <bcollins@debian.org>

	* resolv/res_hconf.c (_res_hconf_init): use __secure_getenv when
	checking the RESOLV_HOST_CONF env value.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
--- resolv/res_hconf.c~	Mon Jan  8 10:24:02 2001
+++ resolv/res_hconf.c	Mon Jan  8 10:18:38 2001
@@ -327,7 +327,7 @@
 
   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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]