mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
return NSS_SUCCESS if we have found the max number of gids possible on Solaris; patch from John Klinger <john.klinger@lmco.com>
This commit is contained in:
parent
7a36cc4ac0
commit
28c2a74c85
@ -270,10 +270,13 @@ _nss_winbind_getgroupsbymember_solwrap(nss_backend_t* be, void* args)
|
||||
&errnop);
|
||||
|
||||
/*
|
||||
* Always return NOTFOUND so nsswitch will get info from all
|
||||
* the database backends specified in the nsswitch.conf file.
|
||||
*/
|
||||
return NSS_STATUS_NOTFOUND;
|
||||
* If the maximum number of gids have been found, return
|
||||
* SUCCESS so the switch engine will stop searching. Otherwise
|
||||
* return NOTFOUND so nsswitch will continue to get groups
|
||||
* from the remaining database backends specified in the
|
||||
* nsswitch.conf file.
|
||||
*/
|
||||
return (gmem->numgids == gmem->maxgids ? NSS_STATUS_SUCCESS : NSS_STATUS_NOTFOUND);
|
||||
}
|
||||
|
||||
static NSS_STATUS
|
||||
|
Loading…
Reference in New Issue
Block a user