Message415716
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) |
|
Date |
User |
Action |
Args |
2022-03-21 22:07:02 | gregory.p.smith | set | recipients:
+ gregory.p.smith, ydroneaud |
2022-03-21 22:07:02 | gregory.p.smith | set | messageid: <1647900422.56.0.831505267587.issue47027@roundup.psfhosted.org> |
2022-03-21 22:07:02 | gregory.p.smith | link | issue47027 messages |
2022-03-21 22:07:02 | gregory.p.smith | create | |
|