summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-23 21:19:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-23 21:19:04 (GMT)
commitd6138c426ed83a0d6726b4a8f406b7a8722ac345 (patch)
treefed3e40990e17a58e70f4859b83b018cd5b88df4
parent01d9a775fae9f09dc185d2a6d4790adafc303a25 (diff)
downloadcpython-d6138c426ed83a0d6726b4a8f406b7a8722ac345.zip
cpython-d6138c426ed83a0d6726b4a8f406b7a8722ac345.tar.gz
cpython-d6138c426ed83a0d6726b4a8f406b7a8722ac345.tar.bz2
always allow -1 as a uid
-rw-r--r--Modules/posixmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a06ebd1..65ade9f 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;