projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8a092
)
(main): Don't fail if /etc/resolv.conf doesn't exist.
author
drepper
<drepper>
Sun, 29 Sep 2002 18:18:50 +0000
(18:18 +0000)
committer
drepper
<drepper>
Sun, 29 Sep 2002 18:18:50 +0000
(18:18 +0000)
nss/bug-erange.c
patch
|
blob
|
history
diff --git
a/nss/bug-erange.c
b/nss/bug-erange.c
index
5e535a0
..
b709418
100644
(file)
--- 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;
}