Bugzilla – Attachment 1592 Details for
Bug 1412
Support for users in more than 16 groups on Mac OS X.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
wrap in __APPLE__ and comment
apple-memberd.diff (text/plain), 880 bytes, created by
Damien Miller
on 2009-01-15 11:12:26 AEDT
(
hide
)
Description:
wrap in __APPLE__ and comment
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2009-01-15 11:12:26 AEDT
Size:
880 bytes
patch
obsolete
>Index: uidswap.c >=================================================================== >RCS file: /var/cvs/openssh/uidswap.c,v >retrieving revision 1.59 >diff -u -p -r1.59 uidswap.c >--- uidswap.c 5 Aug 2006 02:39:41 -0000 1.59 >+++ uidswap.c 15 Jan 2009 00:11:41 -0000 >@@ -233,6 +233,16 @@ permanently_set_uid(struct passwd *pw) > fatal("setgid %u: %.100s", (u_int)pw->pw_gid, strerror(errno)); > #endif > >+#ifdef __APPLE__ >+ /* >+ * OS X requires initgroups after setgid to opt back into >+ * memberd support for >16 supplemental groups. >+ */ >+ if (initgroups(pw->pw_name, pw->pw_gid) < 0) >+ fatal("initgroups %.100s %u: %.100s", >+ pw->pw_name, (u_int)pw->pw_gid, strerror(errno)); >+#endif >+ > #if defined(HAVE_SETRESUID) && !defined(BROKEN_SETRESUID) > if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) < 0) > fatal("setresuid %u: %.100s", (u_int)pw->pw_uid, strerror(errno));
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
Flags:
dtucker
:
ok+
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1412
:
1407
| 1592