]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
always allow -1 as a uid
authorBenjamin Peterson <benjamin@python.org>
Sat, 23 Mar 2013 21:19:04 +0000 (16:19 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 23 Mar 2013 21:19:04 +0000 (16:19 -0500)
Modules/posixmodule.c

index a06ebd10a3fed7f766b0c700e8eeb69873456228..65ade9fb9fd8a5cc13c89bf976d0b31525bbf9cb 100644 (file)
@@ -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;