diff options
| author | Victor Stinner <vstinner@python.org> | 2025-05-17 22:24:40 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 22:24:40 (GMT) |
| commit | 009e7b36981fd07f7cca1fdcfcf172ce1584fac7 (patch) | |
| tree | bc2196a777d4147ad9a93a246d028180575a16cc /Python/sysmodule.c | |
| parent | fc7f4c36664314393bd4c30355e21bd7aeac524d (diff) | |
| download | cpython-009e7b36981fd07f7cca1fdcfcf172ce1584fac7.zip cpython-009e7b36981fd07f7cca1fdcfcf172ce1584fac7.tar.gz cpython-009e7b36981fd07f7cca1fdcfcf172ce1584fac7.tar.bz2 | |
gh-134064: Fix sys.remote_exec() error checking (#134067)
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 dd04820..4ed045e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2485,7 +2485,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); |
