From: Aki Tuomi Date: Wed, 19 Sep 2018 09:27:50 +0000 (+0300) Subject: doveadm-auth-server: Do not use i_fatal on user listing error X-Git-Tag: 2.3.9~1387 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03d00cd76bc10fda3bbaa968dd00d4b6752d2905;p=thirdparty%2Fdovecot%2Fcore.git doveadm-auth-server: Do not use i_fatal on user listing error Breaks error reporting to HTTP client --- diff --git a/src/doveadm/doveadm-auth-server.c b/src/doveadm/doveadm-auth-server.c index 44278e467e..e874ea8ad0 100644 --- a/src/doveadm/doveadm-auth-server.c +++ b/src/doveadm/doveadm-auth-server.c @@ -182,8 +182,10 @@ cmd_user_list(struct auth_master_connection *conn, if (users[i] != NULL) printf("%s\n", username); } - if (auth_master_user_list_deinit(&ctx) < 0) - i_fatal("user listing failed"); + if (auth_master_user_list_deinit(&ctx) < 0) { + i_error("user listing failed"); + doveadm_exit_code = EX_DATAERR; + } } static void cmd_auth_cache_flush(int argc, char *argv[])