aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorapreiml <apreiml@strohwolke.at>2018-11-14 12:47:16 +0100
committerGitHub <noreply@github.com>2018-11-14 12:47:16 +0100
commit359f6e43d137a4d750e0e134eef1418a158eacf7 (patch)
tree3903452da338490795bfc6b37a2ef1dfd8504315 /src
parentcf6ff4df42cb4166b402ba20488c47254a20ba57 (diff)
downloadrspamd-359f6e43d137a4d750e0e134eef1418a158eacf7.tar.gz
rspamd-359f6e43d137a4d750e0e134eef1418a158eacf7.zip
fix return code of rspamc
It'll set the return code to EXIT_FAILURE if one of the parties (rspamd side or sub process) or both are failing.
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 7f333f9d7..c52f615dc 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -2024,5 +2024,5 @@ main (gint argc, gchar **argv, gchar **env)
}
/* Mix retcode (return from Rspamd side) and ret (return from subprocess) */
- return ret ^ retcode;
+ return ret | retcode;
}