mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
always allow -1 as a uid
This commit is contained in:
parent
01d9a775fa
commit
d6138c426e
1 changed files with 0 additions and 4 deletions
|
|
@ -397,8 +397,6 @@ _Py_Uid_Converter(PyObject *obj, void *p)
|
|||
goto OverflowUp;
|
||||
return 0;
|
||||
}
|
||||
if ((uid_t)uresult == (uid_t)-1)
|
||||
goto OverflowUp;
|
||||
} else {
|
||||
if (result < 0)
|
||||
goto OverflowDown;
|
||||
|
|
@ -451,8 +449,6 @@ _Py_Gid_Converter(PyObject *obj, void *p)
|
|||
goto OverflowUp;
|
||||
return 0;
|
||||
}
|
||||
if ((gid_t)uresult == (gid_t)-1)
|
||||
goto OverflowUp;
|
||||
} else {
|
||||
if (result < 0)
|
||||
goto OverflowDown;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue