summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 20:57:52 (GMT)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>2014-12-08 12:26:59 (GMT)
commit1c9d586a6b1540b79602ac48109d1e8c2e74c68e (patch)
tree49d113f6bbf289a09edc26849dfe24af4f6cfeb5 /ares_gethostbyname.c
parent46fa9cad7984cb632c9f8776297fe4a86e19e0d8 (diff)
downloadc-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.zip
c-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.tar.gz
c-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.tar.bz2
downstream: ocloexec
Change-Id: Ie10c7a5414603781405af5b7a094c9cc359e2465 Author: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index 2b27b2e..5bb0d35 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -373,7 +373,7 @@ static int file_lookup(const char *name, int family, struct hostent **host)
return ARES_ENOTFOUND;
#endif
- fp = fopen(PATH_HOSTS, "r");
+ fp = fopen(PATH_HOSTS, "re");
if (!fp)
{
error = ERRNO;