diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:57:52 -0700 |
---|---|---|
committer | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-12-08 13:26:59 +0100 |
commit | 1c9d586a6b1540b79602ac48109d1e8c2e74c68e (patch) | |
tree | 49d113f6bbf289a09edc26849dfe24af4f6cfeb5 /ares_search.c | |
parent | 46fa9cad7984cb632c9f8776297fe4a86e19e0d8 (diff) | |
download | c-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.tar.gz c-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.tar.bz2 c-ares-1c9d586a6b1540b79602ac48109d1e8c2e74c68e.zip |
downstream: ocloexec
Change-Id: Ie10c7a5414603781405af5b7a094c9cc359e2465
Author: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'ares_search.c')
-rw-r--r-- | ares_search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_search.c b/ares_search.c index ec07640..45ba0a0 100644 --- a/ares_search.c +++ b/ares_search.c @@ -251,7 +251,7 @@ static int single_domain(ares_channel channel, const char *name, char **s) hostaliases = getenv("HOSTALIASES"); if (hostaliases) { - fp = fopen(hostaliases, "r"); + fp = fopen(hostaliases, "re"); if (fp) { while ((status = ares__read_line(fp, &line, &linesize)) |