changeset 14933:e511408bd991

doveadm pw -t: Don't ask for password if -p is also specified. Patch by Paul Wallingford.
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Mar 2013 21:13:20 +0200
parents 87a9eec10145
children e294e416f5ba
files src/doveadm/doveadm-pw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/doveadm-pw.c	Wed Mar 20 18:46:10 2013 +0200
+++ b/src/doveadm/doveadm-pw.c	Wed Mar 20 21:13:20 2013 +0200
@@ -78,7 +78,7 @@
 	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;