Author owsla
Recipients
Date 2007-07-04.15:04:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Indeed, in Modules/posixmodule.c::posix_chown(), the uid and gid variables are defined as type 'int'. They should be of type 'uid_t' and 'gid_t' which are mapped to 'unsigned int' on at least some Unix platforms (I haven't checked extensively.)

The wrinkle here is that chown() needs to be able to handle the case of uid/gid set to -1, which means to leave them as is. Therefore, os.chown(-1, -1) is valid, but so is os.chown(4294967294, 4294967294).
History
Date User Action Args
2007-08-23 14:58:18adminlinkissue1747858 messages
2007-08-23 14:58:18admincreate