From 6d5b4b51cdfaec39c9680ee8d96105f798e5e80c Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 28 May 2019 10:35:55 +0300 Subject: [PATCH] doveadm-dsync: Set NOREPLICATE error code instead of returning it This is how the error handling is supposed to be done. Broken in 7f0dcac9942910c2934ceab1230e539043167601 --- src/doveadm/doveadm-dsync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doveadm/doveadm-dsync.c b/src/doveadm/doveadm-dsync.c index dbb337852a..b0c057e182 100644 --- a/src/doveadm/doveadm-dsync.c +++ b/src/doveadm/doveadm-dsync.c @@ -1170,7 +1170,8 @@ cmd_dsync_server_run(struct doveadm_mail_cmd_context *_ctx, if (!cli) { if (ctx->replicator_notify && mail_user_plugin_getenv_bool(_ctx->cur_mail_user, "noreplicate")) { - return DOVEADM_EX_NOREPLICATE; + _ctx->exit_code = DOVEADM_EX_NOREPLICATE; + return -1; } /* doveadm-server connection. start with a success reply. -- 2.47.3