about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/Makefile5
-rw-r--r--nss/bug-erange.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 1a24482196..320fbbd9f1 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
+# Copyright (C) 1996,1997,1998,2000,2001,2002 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -39,7 +39,8 @@ databases		= proto service hosts network grp pwd rpc ethers \
 others                  := getent
 install-bin             := getent
 
-tests			= test-netdb bug-erange
+tests			= test-netdb
+xtests			= bug-erange
 
 include ../Makeconfig
 
diff --git a/nss/bug-erange.c b/nss/bug-erange.c
index 5e535a0fe4..b709418b5c 100644
--- a/nss/bug-erange.c
+++ b/nss/bug-erange.c
@@ -6,6 +6,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 int
 main (void)
@@ -35,6 +36,13 @@ main (void)
   if (res != 0 || hp == NULL)
     {
       printf ("gethostbyname_r failed: %s (errno: %m)\n", strerror (res));
+
+      if (access ("/etc/resolv.conf", R_OK))
+	{
+	  puts ("DNS probably not set up");
+	  return 0;
+	}
+
       return 1;
     }