Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 253331 Details for
Bug 344307
portage doesn't work if the user's group id is numeric
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix of previous patch
getgrnam.patch (text/plain), 869 bytes, created by
Tom Menari
on 2010-11-05 18:40:35 UTC
(
hide
)
Description:
fix of previous patch
Filename:
MIME Type:
Creator:
Tom Menari
Created:
2010-11-05 18:40:35 UTC
Size:
869 bytes
patch
obsolete
>--- a/prefix-portage-2.2.01.15553/pym/portage/data.py 2010-07-14 17:55:27.000000000 +0100 >+++ b/prefix-portage-2.2.01.15553/pym/portage/data.py 2010-11-05 18:33:39.000000000 +0000 >@@ -3,7 +3,7 @@ > # Distributed under the terms of the GNU General Public License v2 > > import os, sys, pwd, grp, platform >-from portage.const import PORTAGE_GROUPNAME, PORTAGE_USERNAME, rootuid, EPREFIX >+from portage.const import * > > import portage > portage.proxy.lazyimport.lazyimport(globals(), >@@ -85,7 +85,10 @@ > #Discover the uid and gid of the portage user/group > try: > portage_uid = pwd.getpwnam(_portage_uname)[2] >- portage_gid = grp.getgrnam(_portage_grpname)[2] >+ if _portage_grpname.isdigit(): >+ portage_gid = int(_portage_grpname) >+ else: >+ portage_gid = grp.getgrnam(_portage_grpname)[2] > if secpass < 1 and portage_gid in os.getgroups(): > secpass=1 > except KeyError:
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 344307
:
253329
| 253331 |
255981
|
368474
|
368490