search for: gid_count

Displaying 1 result from an estimated 1 matches for "gid_count".

Did you mean: uid_count
2018 Aug 10
1
dying on osx
...adding a number of groups when it starts up. I've hacked a work around to get it working for me on my laptop: diff --git a/src/lib/restrict-access.c b/src/lib/restrict-access.c @@ -224,7 +224,12 @@ static void fix_groups_list(const struct restrict_access_settings *set, -??? if (setgroups(gid_count, gid_list) < 0) { +??? if (setgroups(gid_count > NGROUPS_MAX ? 16 : gid_count, gid_list) < 0) { ???? ??? if (errno == EINVAL) { ???? ??? ??? i_fatal("setgroups(%s) failed: Too many extra groups", ???? ??? ??? ??? set->extra_groups == NULL ? "" : and this works....