The Samba-Bugzilla – Attachment 7550 Details for
Bug 8646
invalid group (-1) using idmap backend nss panics sys_setgroups on solaris
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
workaround for this bug with Oracle Solaris bundled samba
setgroups_neg1.c (text/plain), 335 bytes, created by
Paul B. Henson
on 2012-05-10 22:22:18 UTC
(
hide
)
Description:
workaround for this bug with Oracle Solaris bundled samba
Filename:
MIME Type:
Creator:
Paul B. Henson
Created:
2012-05-10 22:22:18 UTC
Size:
335 bytes
patch
obsolete
>#include <unistd.h> > >int setgroups(int ngroups, const gid_t *grouplist) { > int i,j; > gid_t *grouplist2 = (gid_t *)grouplist; > > for (i=0; i < ngroups; i++) > if (grouplist2[i] == -1) { > for (j=i; j < ngroups-1; j++) > grouplist2[j] = grouplist2[j+1]; > ngroups--; > } > > return _setgroups(ngroups, (const gid_t *)grouplist2); >} >
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 Raw
Actions:
View
Attachments on
bug 8646
:
7159
|
7401
| 7550