mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
* nscd/connections.c (invalidate_cache): If the host cache has to be invalidated, re-read resolv.conf.
This commit is contained in:
parent
340ef046a6
commit
482bbeb905
@ -1,5 +1,8 @@
|
|||||||
2004-06-27 Ulrich Drepper <drepper@redhat.com>
|
2004-06-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nscd/connections.c (invalidate_cache): If the host cache has to
|
||||||
|
be invalidated, re-read resolv.conf.
|
||||||
|
|
||||||
* resolv/resolv.h (RES_NOIP6DOTINT): Define.
|
* resolv/resolv.h (RES_NOIP6DOTINT): Define.
|
||||||
* resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
|
* resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
|
||||||
* resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
|
* resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Inner loops of cache daemon.
|
/* Inner loops of cache daemon.
|
||||||
Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
|
Copyright (C) 1998-2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -25,6 +25,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
#include <resolv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -241,7 +242,12 @@ invalidate_cache (char *key)
|
|||||||
else if (strcmp (key, "group") == 0)
|
else if (strcmp (key, "group") == 0)
|
||||||
number = grpdb;
|
number = grpdb;
|
||||||
else if (__builtin_expect (strcmp (key, "hosts"), 0) == 0)
|
else if (__builtin_expect (strcmp (key, "hosts"), 0) == 0)
|
||||||
number = hstdb;
|
{
|
||||||
|
number = hstdb;
|
||||||
|
|
||||||
|
/* Re-initialize the resolver. resolv.conf might have changed. */
|
||||||
|
res_init ();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user