Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 147625
Collapse All | Expand All

(-)pym/portage_data.py (-4 / +13 lines)
Lines 111-117 Link Here
111
111
112
userpriv_groups = [portage_gid]
112
userpriv_groups = [portage_gid]
113
if secpass >= 2:
113
if secpass >= 2:
114
	for g in grp.getgrall():
114
	# Get a list of group IDs for the portage user.  Do not use grp.getgrall()
115
		if "portage" in g[3]:
115
	# since it is known to trigger spurious SIGPIPE problems with nss_ldap.
116
			userpriv_groups.append(g[2])
116
	from commands import getstatusoutput
117
	userpriv_groups = list(set(userpriv_groups))
117
	mystatus, myoutput = getstatusoutput("id -G portage")
118
	if mystatus == os.EX_OK:
119
		for x in myoutput.split():
120
			try:
121
				userpriv_groups.append(int(x))
122
			except ValueError:
123
				pass
124
			del x
125
		userpriv_groups = list(set(userpriv_groups))
126
	del getstatusoutput, mystatus, myoutput

Return to bug 147625