0b44a031
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; }