summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-05-17 22:50:00 (GMT)
committerGitHub <noreply@github.com>2025-05-17 22:50:00 (GMT)
commiteaee2ae0333dde4f18bf849e4a90c8eebb7e2cb9 (patch)
treee5d210b8f9255a2a05ea20ca3e0994b0000bf361 /Python/sysmodule.c
parent1ba5e65b76eb0d745e63691bda7206e66f72a961 (diff)
downloadcpython-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.c2
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);