]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104522: Fix OSError raised when run a subprocess (#114195)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 18 Jan 2024 00:52:42 +0000 (02:52 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 00:52:42 +0000 (16:52 -0800)
commite2c097ebdee447ded1109f99a235e65aa3533bf8
tree7e6efa81cfe3b6fd7e010e717e2f1990c40eeddc
parent4c7e09d0129dafddba58979ced9580f856f65efa
gh-104522: Fix OSError raised when run a subprocess (#114195)

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

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

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