Message 32447 - Python tracker
Notice that the value really is -2. It's important to find out how uid_t is defined on the platform; it may be that the return value of stat is already incorrect. Merely changing the variables to uid_t and gid_t is not enough, since then ParseTuple would stop working correctly. Is anybody interested in providing a patch?