File coreutils-getaddrinfo.diff of Package coreutils

Index: coreutils-6.10/gnulib-tests/test-getaddrinfo.c
===================================================================
--- coreutils-6.10.orig/gnulib-tests/test-getaddrinfo.c	2007-11-17 07:59:42.000000000 +0100
+++ coreutils-6.10/gnulib-tests/test-getaddrinfo.c	2008-03-17 13:43:58.000000000 +0100
@@ -61,6 +61,11 @@ int simple (char *host, char *service)
       if (res == EAI_SERVICE)
 	return 0;
 
+      /* Do not fail this test for temporary name resolution errors.  */
+      if (res == EAI_AGAIN
+	  || res == EAI_NONAME)
+	return 0;
+
       return 1;
     }
 
openSUSE Build Service is sponsored by