summaryrefslogtreecommitdiff
path: root/src/misc/getgrouplist.c
blob: 88f273d77871d662f225786f264888a2771a7d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <grp.h>

/* FIXME */

int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups)
{
	if (*ngroups<1) return -1;
	*groups = gid;
	*ngroups = 1;
	return 0;
}