[Python-checkins] cpython (2.7): always allow -1 as a uid
benjamin.peterson
python-checkins at python.org
Sat Mar 23 22:19:26 CET 2013
http://hg.python.org/cpython/rev/a4dbe53577cb
changeset: 82927:a4dbe53577cb
branch: 2.7
parent: 82925:c982393bea4e
user: Benjamin Peterson <benjamin at python.org>
date: Sat Mar 23 16:19:04 2013 -0500
summary:
always allow -1 as a uid
files:
Modules/posixmodule.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -397,8 +397,6 @@
goto OverflowUp;
return 0;
}
- if ((uid_t)uresult == (uid_t)-1)
- goto OverflowUp;
} else {
if (result < 0)
goto OverflowDown;
@@ -451,8 +449,6 @@
goto OverflowUp;
return 0;
}
- if ((gid_t)uresult == (gid_t)-1)
- goto OverflowUp;
} else {
if (result < 0)
goto OverflowDown;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list