STINNER Victor <[EMAIL PROTECTED]> added the comment: There is not only chown! There are also lchown(), fchown(), stat() and lstat().
Attached patch: - use "unsigned int" to store Windows st_uid/st_gid in the win32_stat structure - use PyLong to store an unsigned group in the stat result (because 2^32-2 doesn't fit in a PyInt) - use "unsigned int" (instead of long) for uid/gid in chown, lchown and fchown Note: *chown() accepts -1 for an argument, eg. chown("file", 10, -1) only changes the user group. ---------- title: uid/gid problem in os.chown -> 32-bits unsigned user/group identifier versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12301/posix_unsigned_uid.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com