mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
use SYS_setgroup32 syscall if available. closes #319
This commit is contained in:
parent
a22b79c416
commit
d9a79062b8
1 changed files with 4 additions and 0 deletions
|
|
@ -126,7 +126,11 @@ int
|
|||
setgroups(const gid_t_rec *rec)
|
||||
{
|
||||
#if defined __linux__ and UGID_USE_RWLOCK == 0
|
||||
# if defined SYS_setgroups32
|
||||
return ::syscall(SYS_setgroups32,rec->size,rec->gids);
|
||||
# else
|
||||
return ::syscall(SYS_setgroups,rec->size,rec->gids);
|
||||
# endif
|
||||
#else
|
||||
return ::setgroups(rec->size,rec->gids);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue