diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-08-11 10:10:16 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-08-11 10:10:16 +0200 |
commit | 039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1 (patch) | |
tree | 9b61ff729e18e085ea908cd6508a368ce9dcdabc /nscd/Makefile | |
parent | 881546979d0219c18337e1b4f4d00cfacab13c40 (diff) | |
download | glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.tar.gz glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.tar.xz glibc-039ff51ac7e02db1cfc0c23e38ac7bfbb00221d1.zip |
nscd: Do not rebuild getaddrinfo (bug 30709)
The nscd daemon caches hosts data from NSS modules verbatim, without filtering protocol families or sorting them (otherwise separate caches would be needed for certain ai_flags combinations). The cache implementation is complete separate from the getaddrinfo code. This means that rebuilding getaddrinfo is not needed. The only function actually used is __bump_nl_timestamp from check_pf.c, and this change moves it into nscd/connections.c. Tested on x86_64-linux-gnu with -fexceptions, built with build-many-glibcs.py. I also backported this patch into a distribution that still supports nscd and verified manually that caching still works. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'nscd/Makefile')
-rw-r--r-- | nscd/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/Makefile b/nscd/Makefile index 2a0489f4cf..16b6460ee9 100644 --- a/nscd/Makefile +++ b/nscd/Makefile @@ -35,7 +35,7 @@ nscd-modules := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \ getgrnam_r getgrgid_r hstcache gethstbyad_r gethstbynm3_r \ getsrvbynm_r getsrvbypt_r servicescache \ dbg_log nscd_conf nscd_stat cache mem nscd_setup_thread \ - xmalloc xstrdup aicache initgrcache gai res_hconf \ + xmalloc xstrdup aicache initgrcache res_hconf \ netgroupcache cachedumper ifeq ($(build-nscd)$(have-thread-library),yesyes) |