blob: bdfe2b81aa305a329f098391db4f6db6923d8a8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- lib/Components/initgroups/initgroups.c
+++ lib/Components/initgroups/initgroups.c
@@ -23,11 +23,14 @@
initgroups_initgroups(PyObject *self, PyObject *args)
{
char *username;
+ 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);
|