Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* 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>
  • Loading branch information
Ulrich Drepper committed Sep 29, 2002
1 parent 3ae5121 commit 9a1c21c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2002-09-29 Jakub Jelinek <jakub@redhat.com>

* 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>

* stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
Expand Down
5 changes: 5 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2002-09-29 Ulrich Drepper <drepper@redhat.com>

* sysdeps/i386/useldt.h (DO_SET_THREAD_AREA): Don't use
INLINE_SYSCALL for set_thread_area syscall.

2002-09-28 Roland McGrath <roland@redhat.com>

* pthread.c (__pthread_reset_main_thread) [FLOATING_STACKS]:
Expand Down
5 changes: 3 additions & 2 deletions nss/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions nss/bug-erange.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int
main (void)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 9a1c21c

Please sign in to comment.