Hi,
While doing the python tests under AIX,
I noticed that although AIX uses:
typedef uint_t uid_t;
typedef uint_t gid_t;
the actual python code expects:
int uid;
int gid;
For example, in the grpmodule.c:
-----
static PyObject *
grp_getgrgid(PyObject *self, PyObject *args)
{
int gid;
struct group *p;
if (!PyArg_ParseTuple(args, "i:getgrgid", &gid))
return NULL;
if ((p = getgrgid(gid)) == NULL) {
PyErr_SetString(PyExc_KeyError, "getgrgid(): gid not found");
return NULL;
}
return mkgrent(p);
}
-----
Shouldn't this code expect unsigned int, one way
or another (as unsigned int, uid_t, gid_t, ...)?
Thanks,
John