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 gregory.p.smith
Recipients gregory.p.smith, ydroneaud
Date 2022-03-21.22:07:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647900422.56.0.831505267587.issue47027@roundup.psfhosted.org>
In-reply-to
Content
Basically you want it to call fchdir() instead of chdir() when passed a fd (integer) instead of a string/Path-like.  That makes sense and should be a reasonably straight forward set of changes to _posixsubprocess.c.

(A way to convert a fd into a Path-like object would _not_ work as that'd reintroduce the TOCTOU on the directory - that'd be a pathlib feature request anyways, not a subprocess one)
History
Date User Action Args
2022-03-21 22:07:02gregory.p.smithsetrecipients: + gregory.p.smith, ydroneaud
2022-03-21 22:07:02gregory.p.smithsetmessageid: <1647900422.56.0.831505267587.issue47027@roundup.psfhosted.org>
2022-03-21 22:07:02gregory.p.smithlinkissue47027 messages
2022-03-21 22:07:02gregory.p.smithcreate