This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[patch] res_conf.h missing security feature
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: [patch] res_conf.h missing security feature
- From: Ben Collins <bcollins at debian dot org>
- Date: Mon, 8 Jan 2001 10:26:37 -0500
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;