mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 21:30:11 -05:00
use SYS_setgroups rather than setgroups
This commit is contained in:
parent
af24bdb426
commit
5e880bddba
5 changed files with 24 additions and 23 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue