e67796
Work around in the test case, the fact that RHEL-8 NSS modules
e67796
infrastructure incorrectly allows merging in the hosts database.  This
e67796
is a RHEL-8 only fix.
e67796
e67796
diff --git a/nss/tst-nss-gai-actions.c b/nss/tst-nss-gai-actions.c
e67796
index efca6cd1837a172a..c35e752896eceb2a 100644
e67796
--- a/nss/tst-nss-gai-actions.c
e67796
+++ b/nss/tst-nss-gai-actions.c
e67796
@@ -87,6 +87,13 @@ do_one_test (int action, int family, bool canon)
e67796
     case ACTION_MERGE:
e67796
       if (ret == 0)
e67796
 	{
e67796
+	  if (hints.ai_flags == 0 && hints.ai_family == AF_INET)
e67796
+	    {
e67796
+	      printf ("*****      RHEL-8 limitation: "
e67796
+		      "NSS modules infrastructure incorrectly allows MERGE\n");
e67796
+	      return;
e67796
+	    }
e67796
+
e67796
 	  char *formatted = support_format_addrinfo (ai, ret);
e67796
 
e67796
 	  printf ("merge unexpectedly succeeded:\n %s\n", formatted);