This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, sjoerd
Date 2008-12-08.13:56:35
SpamBayes Score 0.00041926245
Marked as misclassified No
Message-id <1228744597.08.0.674440620691.issue4591@psf.upfronthosting.co.za>
In-reply-to
Content
This was already corrected by r61540, and will be released with 2.5.3
and 2.6.2.

BUT -- fchown() was not modified. patch is similar to r61540, but I
don't know how to test:

Index: posixmodule.c
===================================================================
--- posixmodule.c	(revision 67068)
+++ posixmodule.c	(working copy)
@@ -1902,9 +1902,10 @@
 static PyObject *
 posix_fchown(PyObject *self, PyObject *args)
 {
-	int fd, uid, gid;
+	int fd;
+	long uid, gid;
 	int res;
-	if (!PyArg_ParseTuple(args, "iii:chown", &fd, &uid, &gid))
+	if (!PyArg_ParseTuple(args, "ill:fchown", &fd, &uid, &gid))
 		return NULL;
 	Py_BEGIN_ALLOW_THREADS
 	res = fchown(fd, (uid_t) uid, (gid_t) gid);
History
Date User Action Args
2008-12-08 13:56:37amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, sjoerd
2008-12-08 13:56:37amaury.forgeotdarcsetmessageid: <1228744597.08.0.674440620691.issue4591@psf.upfronthosting.co.za>
2008-12-08 13:56:35amaury.forgeotdarclinkissue4591 messages
2008-12-08 13:56:35amaury.forgeotdarccreate