aboutsummaryrefslogtreecommitdiff
path: root/nss/bug-erange.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-09-29 18:25:48 +0000
committerUlrich Drepper <drepper@redhat.com>2002-09-29 18:25:48 +0000
commit9a1c21c453c45ac30b0350877b13ead6a09914e5 (patch)
tree479e8f5e4cc74cdd34edb6582b98bf68607dad9f /nss/bug-erange.c
parent3ae5121b7ff54f043c0288c29a76fa28a8ff7c3d (diff)
downloadglibc-9a1c21c453c45ac30b0350877b13ead6a09914e5.tar
glibc-9a1c21c453c45ac30b0350877b13ead6a09914e5.tar.gz
glibc-9a1c21c453c45ac30b0350877b13ead6a09914e5.tar.bz2
glibc-9a1c21c453c45ac30b0350877b13ead6a09914e5.zip
Update.
* nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't exist. 2002-09-29 Ulrich Drepper <drepper@redhat.com> * nss/Makefile: Move bug-erage from tests to xtests. 2002-09-29 Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'nss/bug-erange.c')
-rw-r--r--nss/bug-erange.c8
1 files changed, 8 insertions, 0 deletions
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;
}