File 0171-exportfs-replace-one-xlog-D_GENERAL-in-host_canonnam.patch of Package nfs-utils.12300

From 28e244eb8eb986b75261a48c2e49685be2f2f005 Mon Sep 17 00:00:00 2001
From: Scott Mayhew <smayhew@redhat.com>
Date: Mon, 2 May 2016 11:57:31 -0400
Subject: [PATCH] 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>
---
 support/export/hostname.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/support/export/hostname.c
+++ b/support/export/hostname.c
@@ -226,7 +226,7 @@ host_canonname(const struct sockaddr *sa
 	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;
 	}
openSUSE Build Service is sponsored by