]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Remove old doveadm-server exit-code workaround
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 29 Jul 2021 12:40:00 +0000 (15:40 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Jan 2022 11:52:09 +0000 (13:52 +0200)
The "old" means v2.2.2 or older.

src/doveadm/server-connection.c

index c8dafee93717fbc844646bfe0720d3a0fd8aca7c..52fa26fb92e5ac2e21757180faa90cf5288c4d53 100644 (file)
@@ -21,7 +21,6 @@
 #include "doveadm-server.h"
 #include "server-connection.h"
 
-#include <sysexits.h>
 #include <unistd.h>
 
 #define DOVEADM_LOG_CHANNEL_ID 'L'
@@ -477,12 +476,6 @@ server_connection_input_cmd_error(struct server_connection *conn,
        case DOVEADM_EX_REFERRAL:
                reply.error = args;
                break;
-       case DOVEADM_EX_UNKNOWN:
-               if (str_to_int(line, &reply.exit_code) < 0) {
-                       /* old doveadm-server */
-                       reply.exit_code = EX_TEMPFAIL;
-               }
-               break;
        }
        server_connection_callback(conn, &reply);
 }