Bugzilla – Attachment 728 Details for
Bug 938
"AllowGroups" option and secondary user's groups limit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add some instrumentation to ga_match()
openssh-ga_match-debug.patch (text/plain), 869 bytes, created by
Darren Tucker
on 2004-10-09 12:42:28 AEST
(
hide
)
Description:
Add some instrumentation to ga_match()
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2004-10-09 12:42:28 AEST
Size:
869 bytes
patch
obsolete
>Index: groupaccess.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/groupaccess.c,v >retrieving revision 1.8 >diff -u -p -r1.8 groupaccess.c >--- groupaccess.c 24 Feb 2004 02:05:12 -0000 1.8 >+++ groupaccess.c 9 Oct 2004 02:36:36 -0000 >@@ -73,10 +73,19 @@ ga_match(char * const *groups, int n) > { > int i, j; > >- for (i = 0; i < ngroups; i++) >+ for (i = 0; i < n; i++) >+ debug("%s: looking for %s", __func__, groups[i]); >+ >+ for (i = 0; i < ngroups; i++) { >+ debug("%s: checking user's group %s", __func__, >+ groups_byname[i]); > for (j = 0; j < n; j++) >- if (match_pattern(groups_byname[i], groups[j])) >+ if (match_pattern(groups_byname[i], groups[j])) { >+ debug("%s: match found", __func__); > return 1; >+ } >+ } >+ debug("%s: match not found", __func__); > return 0; > } >
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 938
:
727
| 728 |
729
|
730
|
731
|
732