use SYS_setgroups rather than setgroups

This commit is contained in:
Antonio SJ Musumeci 2015-10-29 23:20:37 -04:00
parent af24bdb426
commit 5e880bddba
5 changed files with 24 additions and 23 deletions

View file

@ -29,8 +29,6 @@
#include <vector>
typedef std::vector<gid_t> gid_t_vector;
namespace mergerfs
{
namespace ugid
@ -43,11 +41,5 @@ namespace mergerfs
init()
{
}
int
setgroups(const gid_t_vector &gidlist)
{
return ::syscall(SYS_setgroups,gidlist.size(),&gidlist[0]);
}
}
}