summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorJakub KulĂ­k <Kulikjak@gmail.com>2020-12-29 12:58:27 (GMT)
committerGitHub <noreply@github.com>2020-12-29 12:58:27 (GMT)
commit0159e5efeebd12b3cf365c8569ca000eac7cb03e (patch)
tree8f51df34012114bc688b561d2b9c5fc639884600 /Modules/posixmodule.c
parentdd39123970892733c317f235808638ae5c0ccf04 (diff)
downloadcpython-0159e5efeebd12b3cf365c8569ca000eac7cb03e.zip
cpython-0159e5efeebd12b3cf365c8569ca000eac7cb03e.tar.gz
cpython-0159e5efeebd12b3cf365c8569ca000eac7cb03e.tar.bz2
bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index d9eb62f..13e3963 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -672,7 +672,7 @@ _PyLong_FromGid(gid_t gid)
}
int
-_Py_Uid_Converter(PyObject *obj, void *p)
+_Py_Uid_Converter(PyObject *obj, uid_t *p)
{
uid_t uid;
PyObject *index;
@@ -759,7 +759,7 @@ _Py_Uid_Converter(PyObject *obj, void *p)
success:
Py_DECREF(index);
- *(uid_t *)p = uid;
+ *p = uid;
return 1;
underflow:
@@ -778,7 +778,7 @@ fail:
}
int
-_Py_Gid_Converter(PyObject *obj, void *p)
+_Py_Gid_Converter(PyObject *obj, gid_t *p)
{
gid_t gid;
PyObject *index;
@@ -866,7 +866,7 @@ _Py_Gid_Converter(PyObject *obj, void *p)
success:
Py_DECREF(index);
- *(gid_t *)p = gid;
+ *p = gid;
return 1;
underflow: