mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-42655: Fix subprocess extra_groups gid conversion (GH-23762)
This commit is contained in:
parent
dd39123970
commit
0159e5efee
4 changed files with 9 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue