Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105417 Details for
Bug 147625
portage-2.1.x error 3328 with >sys-auth/nss_ldap-239-r1 - nss_ldap causes SIGPIPE
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use `id -G portage` instead of grp.getgrall()
groups.patch (text/plain), 862 bytes, created by
Zac Medico
on 2007-01-04 13:20:36 UTC
(
hide
)
Description:
use `id -G portage` instead of grp.getgrall()
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-01-04 13:20:36 UTC
Size:
862 bytes
patch
obsolete
>Index: pym/portage_data.py >=================================================================== >--- pym/portage_data.py (revision 5460) >+++ pym/portage_data.py (revision 5462) >@@ -111,7 +111,16 @@ > > userpriv_groups = [portage_gid] > if secpass >= 2: >- for g in grp.getgrall(): >- if "portage" in g[3]: >- userpriv_groups.append(g[2]) >- userpriv_groups = list(set(userpriv_groups)) >+ # Get a list of group IDs for the portage user. Do not use grp.getgrall() >+ # since it is known to trigger spurious SIGPIPE problems with nss_ldap. >+ from commands import getstatusoutput >+ mystatus, myoutput = getstatusoutput("id -G portage") >+ if mystatus == os.EX_OK: >+ for x in myoutput.split(): >+ try: >+ userpriv_groups.append(int(x)) >+ except ValueError: >+ pass >+ del x >+ userpriv_groups = list(set(userpriv_groups)) >+ del getstatusoutput, mystatus, myoutput
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 147625
: 105417