Commit d6138c42 authored by Benjamin Peterson's avatar Benjamin Peterson

always allow -1 as a uid

parent 01d9a775
...@@ -397,8 +397,6 @@ _Py_Uid_Converter(PyObject *obj, void *p) ...@@ -397,8 +397,6 @@ _Py_Uid_Converter(PyObject *obj, void *p)
goto OverflowUp; goto OverflowUp;
return 0; return 0;
} }
if ((uid_t)uresult == (uid_t)-1)
goto OverflowUp;
} else { } else {
if (result < 0) if (result < 0)
goto OverflowDown; goto OverflowDown;
...@@ -451,8 +449,6 @@ _Py_Gid_Converter(PyObject *obj, void *p) ...@@ -451,8 +449,6 @@ _Py_Gid_Converter(PyObject *obj, void *p)
goto OverflowUp; goto OverflowUp;
return 0; return 0;
} }
if ((gid_t)uresult == (gid_t)-1)
goto OverflowUp;
} else { } else {
if (result < 0) if (result < 0)
goto OverflowDown; goto OverflowDown;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment