diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-05-17 22:50:00 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 22:50:00 (GMT) |
| commit | eaee2ae0333dde4f18bf849e4a90c8eebb7e2cb9 (patch) | |
| tree | e5d210b8f9255a2a05ea20ca3e0994b0000bf361 /Python/sysmodule.c | |
| parent | 1ba5e65b76eb0d745e63691bda7206e66f72a961 (diff) | |
| download | cpython-eaee2ae0333dde4f18bf849e4a90c8eebb7e2cb9.zip cpython-eaee2ae0333dde4f18bf849e4a90c8eebb7e2cb9.tar.gz cpython-eaee2ae0333dde4f18bf849e4a90c8eebb7e2cb9.tar.bz2 | |
[3.14] gh-134064: Fix sys.remote_exec() error checking (GH-134067) (#134162)
gh-134064: Fix sys.remote_exec() error checking (GH-134067)
(cherry picked from commit 009e7b36981fd07f7cca1fdcfcf172ce1584fac7)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index b46c2ab..8692caa 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2484,7 +2484,7 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script) PyObject *path; const char *debugger_script_path; - if (PyUnicode_FSConverter(script, &path) < 0) { + if (PyUnicode_FSConverter(script, &path) == 0) { return NULL; } debugger_script_path = PyBytes_AS_STRING(path); |
