bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)

This commit is contained in:
Jakub Kulík 2020-12-29 13:58:27 +01:00 committed by GitHub
parent dd39123970
commit 0159e5efee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 11 deletions

View file

@ -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: