summaryrefslogtreecommitdiffstats
path: root/support/export
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2016-05-02 11:57:31 -0400
committerSteve Dickson <steved@redhat.com>2016-05-02 11:57:31 -0400
commit28e244eb8eb986b75261a48c2e49685be2f2f005 (patch)
treeaf338a7ac25bb01e3a781afd1d93f19814664845 /support/export
parentc304a49c7a4afe146848b6f98795880e70f3bbf8 (diff)
downloadnfs-utils-28e244eb8eb986b75261a48c2e49685be2f2f005.tar.gz
nfs-utils-28e244eb8eb986b75261a48c2e49685be2f2f005.tar.xz
nfs-utils-28e244eb8eb986b75261a48c2e49685be2f2f005.zip
exportfs: replace one xlog(D_GENERAL) in host_canonname()
If we fall back to using the numeric host then we shouldn't call xlog with D_GENERAL. That can cause 'exportfs -u' to exit with a 1 if, for example, you have exports using ip addresses that can't be resolved to hostnames. Use D_PARSE instead. Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export')
-rw-r--r--support/export/hostname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/export/hostname.c b/support/export/hostname.c
index 94e98a5..5c4c824 100644
--- a/support/export/hostname.c
+++ b/support/export/hostname.c
@@ -230,7 +230,7 @@ host_canonname(const struct sockaddr *sap)
default:
(void)getnameinfo(sap, salen, buf, (socklen_t)sizeof(buf),
NULL, 0, NI_NUMERICHOST);
- xlog(D_GENERAL, "%s: failed to resolve %s: %s",
+ xlog(D_PARSE, "%s: failed to resolve %s: %s",
__func__, buf, gai_strerror(error));
return NULL;
}