You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2007-08-23.18:49:43.258>created_at=<Date2007-07-12.15:16:35.000>labels= ['extension-modules']
title='chown() does not handle UID > INT_MAX'updated_at=<Date2007-08-23.18:49:43.256>user='https://bugs.python.org/owsla'
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.
Activity
owsla commentedon Jul 12, 2007
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.
birkenfeld commentedon Aug 23, 2007
Closing, superseder has more information and same patch.