Patches item #1752703, was opened at 2007-07-12 11:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1752703&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andrew Ferguson (owsla)
Assigned to: Nobody/Anonymous (nobody)
Summary: chown() does not handle UID > INT_MAX

Initial Comment:
On at least some Unix platforms, uid_t and gid_t are mapped to unsigned int. 
Python parses the values for chown() into signed ints. This causes an exception 
when a UID is greater than INT_MAX.

For a few releases now, 64-bit Fedora has used UINT_MAX-1 as the UID of the 
nfsnobody user. Python programs chown'ing to the nfsnobody user encounter this 
problem.

The fix is only two lines and is attached. This issue is also documented in Bug 
1747858.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1752703&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to