From 4a9a7addbc23be8e7db385697678f53a9d0b96a1 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 18 May 2015 14:38:08 +0100 Subject: mingw: provide fake getgroups and getgrouplist This makes it possible to enable the id and groups applets, though the results they return are worthless. --- include/mingw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/mingw.h') diff --git a/include/mingw.h b/include/mingw.h index f3b260f5a..84522f032 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -48,6 +48,7 @@ IMPL(getgrnam,struct group *,NULL,const char *name UNUSED_PARAM); struct group *getgrgid(gid_t gid); NOIMPL(initgroups,const char *group UNUSED_PARAM,gid_t gid UNUSED_PARAM); static inline void endgrent(void) {} +int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups); /* * limits.h @@ -380,7 +381,7 @@ char *mingw_getcwd(char *pointer, int len); IMPL(getgid,int,DEFAULT_GID,void); -NOIMPL(getgroups,int n UNUSED_PARAM,gid_t *groups UNUSED_PARAM); +int getgroups(int n, gid_t *groups); IMPL(getppid,int,1,void); IMPL(getegid,int,DEFAULT_GID,void); IMPL(geteuid,int,DEFAULT_UID,void); -- cgit v1.2.3-55-g6feb