[New-bugs-announce] [issue7333] Add initgroups to the posix/os modules

Jean-Paul Calderone report at bugs.python.org
Mon Nov 16 15:57:40 CET 2009


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

initgroups(2) is a function for initializing the aux group id list from
site-specific configuration (typically /etc/groups, but not necessarily).

Attached is a patch based on some code from Zope, expanded to have a
test and some docs.  Presumably Zope will be happy to use this function
from the stdlib once they can depend on a version of Python which
includes it.  Twisted would like to as well.

I wasn't able to test the autoconf related parts of the patch as I don't
have easy access to autoconf 2.61.

I also can't run regrtest.py in my environment for some reason.  It
fails to import some names from test_support.  So I didn't run the unit
test that I added, either.

----------
components: Library (Lib)
files: initgroups.patch
keywords: patch
messages: 95348
nosy: exarkun
severity: normal
status: open
title: Add initgroups to the posix/os modules
versions: Python 2.7
Added file: http://bugs.python.org/file15345/initgroups.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7333>
_______________________________________


More information about the New-bugs-announce mailing list