diff options
author | Andreas Schneider <asn@samba.org> | 2017-07-18 10:22:38 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2018-08-28 11:46:15 +0200 |
commit | f068cda262ea8cc17f3867190f9d29abeb93e9a8 (patch) | |
tree | 05a23de396b6ac2565bc6ed11c7200e160b4d44b | |
parent | e192b69a723905aba796a061913fd3ab52926e9a (diff) | |
download | resolv_wrapper-f068cda262ea8cc17f3867190f9d29abeb93e9a8.tar.gz resolv_wrapper-f068cda262ea8cc17f3867190f9d29abeb93e9a8.tar.xz resolv_wrapper-f068cda262ea8cc17f3867190f9d29abeb93e9a8.zip |
rwrap: Only warn if we can't open the dns hosts file
It is possible that it hasn't been created yet. At least in Samba when
we start the test environment.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | src/resolv_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv_wrapper.c b/src/resolv_wrapper.c index 8b74835..2b49696 100644 --- a/src/resolv_wrapper.c +++ b/src/resolv_wrapper.c @@ -853,7 +853,7 @@ static int rwrap_get_record(const char *hostfile, unsigned recursion, fp = fopen(hostfile, "r"); if (fp == NULL) { - RWRAP_LOG(RWRAP_LOG_ERROR, + RWRAP_LOG(RWRAP_LOG_WARN, "Opening %s failed: %s", hostfile, strerror(errno)); return -1; |