Lines Matching defs:ngroups
70 int ngroups;
304 for (i = 0; i < ngroups; i++) {
356 LOG(log_debug, logtype_afpd, "login: supplementary groups: %s", print_groups(ngroups, groups));
386 const char *print_groups(int ngroups, gid_t *groups)
392 if (ngroups == 0)
395 for (i = 0; (i < ngroups) && (s < &groupsstr[GROUPSTR_BUFSIZE]); i++) {
407 if ((ngroups = getgroups(0, NULL)) < 0) {
414 if (NULL == (groups = calloc(ngroups, GROUPS_SIZE)) ) {
415 LOG(log_error, logtype_afpd, "login: %s calloc: %d", ngroups);
419 if ((ngroups = getgroups(ngroups, groups)) < 0 ) {