]> source.dussan.org Git - rspamd.git/commitdiff
fix return code of rspamc 2632/head
authorapreiml <apreiml@strohwolke.at>
Wed, 14 Nov 2018 11:47:16 +0000 (12:47 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Nov 2018 11:47:16 +0000 (12:47 +0100)
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

index 7f333f9d79ddca5aaf92d5f45e521213e8017a9e..c52f615dc8615182d03cc62d5ce3a42e50c93dbd 100644 (file)
@@ -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;
 }