Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 04:12:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 200512] _nss_cache_cycle_prevention_function hack between lib/libc and usr.sbin
Message-ID:  <bug-200512-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200512

            Bug ID: 200512
           Summary: _nss_cache_cycle_prevention_function hack between
                    lib/libc and usr.sbin
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

Spotted the string 'Undefined symbol "_nss_cache_cycle_prevention_function"' in
a corefile that uses nsdispatch.

The lookup's being done in lib/libc/net/nsdispatch.c, however,
"_nss_cache_cycle_prevention_function" is only being provided by nscd.

This hack seems horrible and could probably be replaced with a weak symbol...

$ grep -r _nss_cache_cycle_prevention usr.sbin/ lib
usr.sbin/nscd/nscd.c: * The idea of _nss_cache_cycle_prevention_function is
that nsdispatch
usr.sbin/nscd/nscd.c:void *_nss_cache_cycle_prevention_function;
lib/libc/net/nsdispatch.c:            "_nss_cache_cycle_prevention_function");

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200512-8>