mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-13 19:21:36 +03:00
Open /etc/resolv.conf with FD_CLOEXEC
This commit is contained in:
committed by
Ulrich Drepper
parent
370a7d88f7
commit
ad8ac1bd6a
@ -1,3 +1,8 @@
|
|||||||
|
2011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
|
||||||
|
|
||||||
|
* resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
|
||||||
|
FD_CLOEXEC.
|
||||||
|
|
||||||
2011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
|
2011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
|
* sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
|
||||||
|
@ -233,7 +233,7 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
(line[sizeof(name) - 1] == ' ' || \
|
(line[sizeof(name) - 1] == ' ' || \
|
||||||
line[sizeof(name) - 1] == '\t'))
|
line[sizeof(name) - 1] == '\t'))
|
||||||
|
|
||||||
if ((fp = fopen(_PATH_RESCONF, "rc")) != NULL) {
|
if ((fp = fopen(_PATH_RESCONF, "rce")) != NULL) {
|
||||||
/* No threads use this stream. */
|
/* No threads use this stream. */
|
||||||
__fsetlocking (fp, FSETLOCKING_BYCALLER);
|
__fsetlocking (fp, FSETLOCKING_BYCALLER);
|
||||||
/* read the config file */
|
/* read the config file */
|
||||||
|
Reference in New Issue
Block a user