]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm pw -t: Don't ask for password if -p is also specified.
authorTimo Sirainen <tss@iki.fi>
Wed, 20 Mar 2013 19:13:20 +0000 (21:13 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 20 Mar 2013 19:13:20 +0000 (21:13 +0200)
Patch by Paul Wallingford.

src/doveadm/doveadm-pw.c

index f4e617d5be157d545ae50a4c58eadd715fe2dc9d..cac4dfed4c60b806facd87a2ae777aa1e30f7014 100644 (file)
@@ -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;