int Client::check_permissions(Inode *in, int flags, int uid, int gid)
{
- // initial number of group entries, defaults to posix standard of 16
- // PAM implementations may provide more than 16 groups....
- int initial_group_count = 16;
-
gid_t *sgids = NULL;
int sgid_count = 0;
if (getgroups_cb) {
}
#if HAVE_GETGROUPLIST
else {
- //use PAM to get the group list
- sgid_count = initial_group_count;
+ // use PAM to get the group list
+ // initial number of group entries, defaults to posix standard of 16
+ // PAM implementations may provide more than 16 groups....
+ sgid_count = 16;
sgids = (gid_t*)malloc(sgid_count * sizeof(gid_t));
if (sgids == NULL) {
ldout(cct, 3) << "allocating group memory failed" << dendl;