This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients boya, vstinner
Date 2009-09-10.08:02:19
SpamBayes Score 4.40486e-10
Marked as misclassified No
Message-id <>
posix modules contains a lot of function parsing uid_t / gid_t types. I would be
nice to factorize the code: create a function to get an uid_t, and another to
get a gid_t. I don't know the name of such callback, but it's used with:
PyArg_ParseTuple(args, "...O&...", ..., &uid, get_uid, ...)).

Such callbacks will be useful for: posix_chown(), posix_fchown(),
posix_lchown(), posix_setuid(), posix_seteuid(), posix_setreuid(),
posix_setegid(), posix_setregid(), posix_setgid().

And maybe also in: posix_setgroups().

In Python trunk, posix_set*id() function do check for uid_t/gid_d overflow, but
not the posix_*chown() functions. The patch only fixes posix_lchown().
Date User Action Args
2009-09-10 08:02:21vstinnersetrecipients: + vstinner, boya
2009-09-10 08:02:21vstinnersetmessageid: <>
2009-09-10 08:02:20vstinnerlinkissue6873 messages
2009-09-10 08:02:19vstinnercreate