From 18bb4bf7608ce2f2e03dc08fa5641f778a2075de Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 9 Mar 2023 09:01:57 +0100 Subject: [PATCH] Fix #9945 About incorrect job status after Runscript::Console execution --- bacula/src/lib/runscript.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/runscript.c b/bacula/src/lib/runscript.c index 2f3b0d029..345ba0389 100644 --- a/bacula/src/lib/runscript.c +++ b/bacula/src/lib/runscript.c @@ -343,9 +343,9 @@ int RUNSCRIPT::run_get_code(JCR *jcr, const char *name) case CONSOLE_CMD: if (console_command) { /* can we run console command? */ if (!console_command(jcr, ecmd)) { /* yes, do so */ - status = 0; - } else { status = 1; + } else { + status = 0; } } break; -- 2.47.3