From e6debde4e52a172ecfa48666a41d3f1c44d958bd Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 20 Mar 2013 21:13:20 +0200 Subject: [PATCH] doveadm pw -t: Don't ask for password if -p is also specified. Patch by Paul Wallingford. --- src/doveadm/doveadm-pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doveadm/doveadm-pw.c b/src/doveadm/doveadm-pw.c index f4e617d5be..cac4dfed4c 100644 --- a/src/doveadm/doveadm-pw.c +++ b/src/doveadm/doveadm-pw.c @@ -78,7 +78,7 @@ static void cmd_pw(int argc, char *argv[]) if (rounds > 0) password_set_encryption_rounds(rounds); - if (test_hash != NULL) + if (test_hash != NULL && plaintext == NULL) plaintext = t_askpass("Enter password to verify: "); while (plaintext == NULL) { const char *check; -- 2.47.3