cvs commit: src/include nsswitch.h src/lib/libc/gen getgrent.c getgrouplist.c src/lib/libc/net nsdispatch.c

Yuri Pankov yuri.pankov at gmail.com
Fri Dec 14 20:59:12 PST 2007


On Wed, Dec 12, 2007 at 10:08:03AM +0000, Michael Bushkov wrote:
> bushman     2007-12-12 10:08:03 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     include              nsswitch.h 
>     lib/libc/gen         getgrent.c getgrouplist.c 
>     lib/libc/net         nsdispatch.c 
>   Log:
>   Implementing 'fallback' nsswitch source. 'fallback' source is used
>   when particular function can't be found in nsswitch-module. For
>   example, getgrouplist(3) will use module-supplied 'getgroupmembership'
>   function (which can work in an optimal way for such source as LDAP) and
>   will fall back to the stanard iterate-through-all-groups implementation
>   otherwise.
>   
>   PR:             ports/114655
>   Submitted by:   Michael Hanselmann <freebsd AT hansmi DOT ch>
>   Reviewed by:    brooks (mentor)
>   
>   Revision  Changes    Path
>   1.5       +3 -1      src/include/nsswitch.h
>   1.37      +190 -74   src/lib/libc/gen/getgrent.c
>   1.16      +4 -39     src/lib/libc/gen/getgrouplist.c
>   1.15      +26 -3     src/lib/libc/net/nsdispatch.c

I'm getting debug.log filled up with:
NSSWITCH(nss_method_lookup): __fallback, passwd, getpwuid_r, not found

Could this be related to this commit or is it PEBKAC?


Yuri


More information about the freebsd-current mailing list