From: Benjamin Peterson Date: Sat, 23 Mar 2013 21:19:04 +0000 (-0500) Subject: always allow -1 as a uid X-Git-Tag: v2.7.4~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6138c426ed83a0d6726b4a8f406b7a8722ac345;p=thirdparty%2FPython%2Fcpython.git always allow -1 as a uid --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a06ebd10a3fe..65ade9fb9fd8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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;