Bugzilla – Attachment 1283 Details for
Bug 1315
Match Group does not support negation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested patch
Match_patch (text/plain), 756 bytes, created by
William Knox
on 2007-05-17 17:48:25 AEST
(
hide
)
Description:
Suggested patch
Filename:
MIME Type:
Creator:
William Knox
Created:
2007-05-17 17:48:25 AEST
Size:
756 bytes
patch
obsolete
>--- groupaccess.c Fri Aug 4 22:39:40 2006 >+++ groupaccess.c Thu May 17 03:28:18 2007 >@@ -78,13 +78,25 @@ > int > ga_match(char * const *groups, int n) > { >- int i, j; >+ int i, j, pattern_return, got_positive; > >+ got_positive = 0; > for (i = 0; i < ngroups; i++) >- for (j = 0; j < n; j++) >- if (match_pattern(groups_byname[i], groups[j])) >- return 1; >- return 0; >+ for (j = 0; j < n; j++) { >+ pattern_return = (match_pattern_list(groups_byname[i], groups[j], strlen(groups[j]), 0)); >+ switch (pattern_return) { >+ case -1: >+ return 0; >+ case 0: >+ continue; >+ case 1: >+ got_positive = 1; >+ default: >+ /* shouldn't get here */ >+ continue; >+ } >+ } >+ return got_positive; > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1315
: 1283 |
1538