summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 13:57:52 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 13:57:52 -0700
commit9f9f9323ff7e7067798b6985648c64fdfeb24122 (patch)
tree5920f64235933c374d6440c4bcdd26d38aba399d /ares_gethostbyaddr.c
parente8040274aea98e1671fb824fdc75028d10084456 (diff)
downloadc-ares-9f9f9323ff7e7067798b6985648c64fdfeb24122.tar.gz
c-ares-9f9f9323ff7e7067798b6985648c64fdfeb24122.tar.bz2
c-ares-9f9f9323ff7e7067798b6985648c64fdfeb24122.zip
ocloexec
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r--ares_gethostbyaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c
index 4b4c8a7..6896a91 100644
--- a/ares_gethostbyaddr.c
+++ b/ares_gethostbyaddr.c
@@ -222,7 +222,7 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
return ARES_ENOTFOUND;
#endif
- fp = fopen(PATH_HOSTS, "r");
+ fp = fopen(PATH_HOSTS, "re");
if (!fp)
{
error = ERRNO;