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 vstinner
Recipients amaury.forgeotdarc, pitrou, sjoerd, vstinner
Date 2009-03-25.01:26:56
SpamBayes Score 3.338899e-07
Marked as misclassified No
Message-id <1237944421.34.0.933142803443.issue4591@psf.upfronthosting.co.za>
In-reply-to
Content
New patch using PyNumber_Index()+PyLong_AsLong() for parse_uid() and 
parse_gid() as proposed by antoine (on IRC).

Changes between python trunk and posix_unsigned_uid-3.patch:

- os.chown() and os.fchown() accepts uid and gid > 2^31: identifiers 
can be in [-1; 2^32-1] (-1 means: don't change uid/gid)

- fix os.*stat(): st_uid and st_gid are unsigned long integers (in [0; 
2^32-1]) instead of signed integers

- os.chown(), os.fchown() and os.setgroups() accepts any objects 
implementing __index__() method (instead of just int/long) and display 
the valid range on error ("group id is to big" => "group id is not in 
range [-1; 2^32-1]")
History
Date User Action Args
2009-03-25 01:27:01vstinnersetrecipients: + vstinner, sjoerd, amaury.forgeotdarc, pitrou
2009-03-25 01:27:01vstinnersetmessageid: <1237944421.34.0.933142803443.issue4591@psf.upfronthosting.co.za>
2009-03-25 01:26:59vstinnerlinkissue4591 messages
2009-03-25 01:26:58vstinnercreate