1
0

getgrouplist.c 180 B

1234567891011
  1. #include <grp.h>
  2. /* FIXME */
  3. int getgrouplist(const char *user, gid_t gid, gid_t *groups, int *ngroups)
  4. {
  5. if (*ngroups<1) return -1;
  6. *groups = gid;
  7. *ngroups = 1;
  8. return 0;
  9. }