mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Make allow-idmap optional (default: false) (#1541)
This is just to correct default behavior for now. More investigation is necessary to properly support idmapping.
This commit is contained in:
parent
3cb35a3a65
commit
0f24bb29ac
6 changed files with 27 additions and 4 deletions
|
|
@ -53,6 +53,9 @@ inline
|
|||
int
|
||||
_setgroups(const std::vector<gid_t> gids_)
|
||||
{
|
||||
if(gids_.empty())
|
||||
return 0;
|
||||
|
||||
#if defined __linux__ and UGID_USE_RWLOCK == 0
|
||||
# if defined SYS_setgroups32
|
||||
return ::syscall(SYS_setgroups32,gids_.size(),gids_.data());
|
||||
|
|
@ -93,7 +96,7 @@ _getgroups(const uid_t uid_,
|
|||
|
||||
error:
|
||||
gids_.clear();
|
||||
gids_.push_back(gid_);
|
||||
//gids_.push_back(gid_);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue