[issue15301] os.chown: OverflowError: Python int too large to convert to C long

Larry Hastings report at bugs.python.org
Sun Jul 15 03:14:42 CEST 2012


Larry Hastings <larry at hastings.org> added the comment:

Here's a first cut at a patch.  It's really just an update of Victor's patch to #4591 (done with his blessing).  I tweaked it slightly; the parsing functions are now O& converter functions.

I also added a reasonable unit test.  Note however that the unit test is only run if you run the test as root.

I don't think this needs any documentation, just a Misc/NEWS entry.

If someone can give me quick turnaround on a review (or two) maybe we can get this in before beta 2 tomorrow.

I'm adding Antoine and MvL as they were in on the earliest known bug of this class.

----------
keywords: +patch
nosy: +loewis, pitrou
Added file: http://bugs.python.org/file26384/larry.chown.unsigned.uid.gid.1.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15301>
_______________________________________


More information about the Python-bugs-list mailing list