FreeBSD/crypto/openssh/groupaccess.c
/*
 * Return 1 if one of user's groups matches group_pattern list.
 * Return 0 on negated or no match.
 */
Return 1 if one of user's groups matches group_pattern list.
Return 0 on negated or no match.
Return 1 if one of user ' s groups matches group_pattern list . Return 0 on negated or no match .
int
ga_match_pattern_list(const char *group_pattern)
{
	int i, found = 0;
	for (i = 0; i < ngroups; i++) {
		switch (match_pattern_list(groups_byname[i], group_pattern, 0)) {
		case -1:
			return 0;	
		case 0:
			continue;
		case 1:
			found = 1;
		}
	}
	return found;
}
int ga_match_pattern_list ( const char * group_pattern ) { int i , found = 0 ; for ( i = 0 ; i < ngroups ; i ++ ) { switch ( match_pattern_list ( groups_byname [ i ] , group_pattern , 0 ) ) { case -1 : return 0 ; case 0 : continue ; case 1 : found = 1 ; } } return found ; }
Return 1 if one of user's groups matches group_pattern list.
Return 1 if one of user ' s groups matches group_pattern list .
/* Negated match wins */