This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author quiver
Recipients belopolsky, exarkun, pitrou, quiver, ronaldoussoren
Date 2010-08-13.13:50:11
SpamBayes Score 0.014649553
Marked as misclassified No
Message-id <1281707428.71.0.6609771735.issue9581@psf.upfronthosting.co.za>
In-reply-to
Content
test_initgroups fails only if the test is invoked by a root and
the user is assigned to only one group.

If I understand test_initgroups correctly, it
(1)looks for an unused gid,
(2)inits process user's group with that gid,
(3)checks if initgroups worked.

Attached patch simplifies step #1
"max(self.saved_groups) + 1" is used.

test_initgroups passed when root's groups are as follows::
* [0]
* [0, 3, 5]
* [0, 1, 2]
History
Date User Action Args
2010-08-13 13:50:28quiversetrecipients: + quiver, ronaldoussoren, exarkun, belopolsky, pitrou
2010-08-13 13:50:28quiversetmessageid: <1281707428.71.0.6609771735.issue9581@psf.upfronthosting.co.za>
2010-08-13 13:50:13quiverlinkissue9581 messages
2010-08-13 13:50:12quivercreate