|
Lines 73-82
ga_match(char * const *groups, int n)
Link Here
|
| 73 |
{ |
73 |
{ |
| 74 |
int i, j; |
74 |
int i, j; |
| 75 |
|
75 |
|
| 76 |
for (i = 0; i < ngroups; i++) |
76 |
for (i = 0; i < n; i++) |
|
|
77 |
debug("%s: looking for %s", __func__, groups[i]); |
| 78 |
|
| 79 |
for (i = 0; i < ngroups; i++) { |
| 80 |
debug("%s: checking user's group %s", __func__, |
| 81 |
groups_byname[i]); |
| 77 |
for (j = 0; j < n; j++) |
82 |
for (j = 0; j < n; j++) |
| 78 |
if (match_pattern(groups_byname[i], groups[j])) |
83 |
if (match_pattern(groups_byname[i], groups[j])) { |
|
|
84 |
debug("%s: match found", __func__); |
| 79 |
return 1; |
85 |
return 1; |
|
|
86 |
} |
| 87 |
} |
| 88 |
debug("%s: match not found", __func__); |
| 80 |
return 0; |
89 |
return 0; |
| 81 |
} |
90 |
} |
| 82 |
|
91 |
|