mirror of
https://github.com/fluencelabs/musl
synced 2025-06-21 18:51:52 +00:00
initial check-in, version 0.5.0
This commit is contained in:
11
src/misc/getgrouplist.c
Normal file
11
src/misc/getgrouplist.c
Normal file
@ -0,0 +1,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;
|
||||
}
|
Reference in New Issue
Block a user