This will be correctly implemented later. The backends actually don't have an
initgroups() function but initgroups_dyn().
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
static int nwrap_initgroups(const char *user, gid_t group)
{
- size_t i;
-
- for (i=0; i < nwrap_main_global->num_backends; i++) {
- struct nwrap_backend *b = &nwrap_main_global->backends[i];
- int rc;
-
- rc = b->ops->nw_initgroups(b, user, group);
- if (rc == 0) {
- return 0;
- }
- }
-
- errno = ENOENT;
- return -1;
+ return 0;
}
int initgroups(const char *user, gid_t group)