From 359f6e43d137a4d750e0e134eef1418a158eacf7 Mon Sep 17 00:00:00 2001 From: apreiml Date: Wed, 14 Nov 2018 12:47:16 +0100 Subject: 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. --- src/client/rspamc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3