[Zope-Checkins] CVS: Zope/lib/Components/initgroups -
initgroups.c:1.3.66.3
Andreas Jung
andreas at andreas-jung.com
Thu Aug 5 06:52:38 EDT 2004
Update of /cvs-repository/Zope/lib/Components/initgroups
In directory cvs.zope.org:/tmp/cvs-serv24726/lib/Components/initgroups
Modified Files:
Tag: Zope-2_7-branch
initgroups.c
Log Message:
- Collector #1267: applied patch to fix segmentation faults on
x86_64 systems
=== Zope/lib/Components/initgroups/initgroups.c 1.3.66.2 => 1.3.66.3 ===
--- Zope/lib/Components/initgroups/initgroups.c:1.3.66.2 Mon Jul 26 07:38:39 2004
+++ Zope/lib/Components/initgroups/initgroups.c Thu Aug 5 06:52:38 2004
@@ -23,10 +23,13 @@
initgroups_initgroups(PyObject *self, PyObject *args)
{
char *username;
+ unsigned int igid;
gid_t gid;
- if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid))
+ if (!PyArg_ParseTuple(args, "sI:initgroups", &username, &igid))
return NULL;
+
+ gid = igid;
if (initgroups(username, gid) == -1)
return PyErr_SetFromErrno(PyExc_OSError);
More information about the Zope-Checkins
mailing list