]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (GH-114243)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 18 Jan 2024 11:32:57 +0000 (13:32 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 11:32:57 +0000 (11:32 +0000)
commit2c9872428e65d32e5896cdf4d633027e88680491
tree3d431277d2250aba7f08a2d7042445e448df0c91
parent9887b0c39630a727a838eef85543173a5467d855
[3.11] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (GH-114243)

Only set filename to cwd if it was caused by failed chdir(cwd).

_fork_exec() now returns "noexec:chdir" for failed chdir(cwd).

(cherry picked from commit e2c097ebdee447ded1109f99a235e65aa3533bf8)

Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2024-01-17-18-53-51.gh-issue-104522.3NyDf4.rst [new file with mode: 0644]
Modules/_posixsubprocess.c