]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-crypt: Fix -O argument type for doveadm cryptokey password command
authorSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Tue, 10 Aug 2021 11:23:55 +0000 (12:23 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 12 Aug 2021 06:45:50 +0000 (06:45 +0000)
Should be boolean instead of string.

src/plugins/mail-crypt/doveadm-mail-crypt.c

index a5c2be6507f61ab274d75ed9e6252c3404b52e0b..7af2ecb629a10ccd201c9358dadf9abe28e25b3a 100644 (file)
@@ -1024,7 +1024,7 @@ DOVEADM_CMD_MAIL_COMMON
 DOVEADM_CMD_PARAM('C', "clear-password", CMD_PARAM_BOOL, 0)
 DOVEADM_CMD_PARAM('N', "ask-new-password", CMD_PARAM_BOOL, 0)
 DOVEADM_CMD_PARAM('n', "new-password", CMD_PARAM_STR, 0)
-DOVEADM_CMD_PARAM('O', "ask-old-password", CMD_PARAM_STR, 0)
+DOVEADM_CMD_PARAM('O', "ask-old-password", CMD_PARAM_BOOL, 0)
 DOVEADM_CMD_PARAM('o', "old-password", CMD_PARAM_STR, 0)
 DOVEADM_CMD_PARAMS_END
 };