mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-12 08:21:58 +03:00
Open /etc/resolv.conf with FD_CLOEXEC
This commit is contained in:
committed by
Ulrich Drepper
parent
370a7d88f7
commit
ad8ac1bd6a
@ -233,7 +233,7 @@ __res_vinit(res_state statp, int preinit) {
|
||||
(line[sizeof(name) - 1] == ' ' || \
|
||||
line[sizeof(name) - 1] == '\t'))
|
||||
|
||||
if ((fp = fopen(_PATH_RESCONF, "rc")) != NULL) {
|
||||
if ((fp = fopen(_PATH_RESCONF, "rce")) != NULL) {
|
||||
/* No threads use this stream. */
|
||||
__fsetlocking (fp, FSETLOCKING_BYCALLER);
|
||||
/* read the config file */
|
||||
|
Reference in New Issue
Block a user