Blame SOURCES/nfs-utils-1.3.0-hostpton-eainoname.patch

e19a30
commit 23d26f9c9fd94406d0c1f4365e6180d59b744861
e19a30
Author: Scott Mayhew <smayhew@redhat.com>
e19a30
Date:   Mon Nov 2 08:45:09 2015 -0500
e19a30
e19a30
    exportfs: Restore the EAI_NONAME check in host_pton()
e19a30
    
e19a30
    Commit d89e3fc7 removed the EAI_NONAME check altogether instead of just
e19a30
    moving the NULL check.  This causes exportfs -u to incorrectly exit
e19a30
    with 1 whenever there's more than one MCL_FQDN export in the exportlist.
e19a30
    
e19a30
    Signed-off-by: Scott Mayhew <smayhew@redhat.com>
e19a30
    Signed-off-by: Steve Dickson <steved@redhat.com>
e19a30
e19a30
diff --git a/support/export/hostname.c b/support/export/hostname.c
e19a30
index 169baa5..7a44d42 100644
e19a30
--- a/support/export/hostname.c
e19a30
+++ b/support/export/hostname.c
e19a30
@@ -134,6 +134,8 @@ host_pton(const char *paddr)
e19a30
 			break;
e19a30
 		}
e19a30
 		return ai;
e19a30
+	case EAI_NONAME:
e19a30
+		break;
e19a30
 	case EAI_SYSTEM:
e19a30
 		xlog(D_GENERAL, "%s: failed to convert %s: (%d) %m",
e19a30
 				__func__, paddr, errno);