diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:57:52 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:57:52 -0700 |
commit | 9f9f9323ff7e7067798b6985648c64fdfeb24122 (patch) | |
tree | 5920f64235933c374d6440c4bcdd26d38aba399d /ares_gethostbyaddr.c | |
parent | e8040274aea98e1671fb824fdc75028d10084456 (diff) | |
download | c-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.c | 2 |
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; |