From 1ac581a03bf83ada86e66da93ab6e8d25e98c94c Mon Sep 17 00:00:00 2001 From: Pascal Volk Date: Sat, 17 Oct 2009 20:27:09 +0000 Subject: [PATCH] doveadm pw: Use t_askpass() instead of getpass() --HG-- branch : HEAD --- src/doveadm/doveadm-pw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doveadm/doveadm-pw.c b/src/doveadm/doveadm-pw.c index 10ef833eb5..3bbae6d5fa 100644 --- a/src/doveadm/doveadm-pw.c +++ b/src/doveadm/doveadm-pw.c @@ -5,6 +5,7 @@ #include "password-scheme.h" #include "randgen.h" #include "doveadm.h" +#include "askpass.h" #include #include @@ -67,8 +68,8 @@ static void cmd_pw(int argc, char *argv[]) const char *check; static int lives = 3; - plaintext = t_strdup(getpass("Enter new password: ")); - check = t_strdup(getpass("Retype new password: ")); + plaintext = t_askpass("Enter new password: "); + check = t_askpass("Retype new password: "); if (strcmp(plaintext, check) != 0) { fprintf(stderr, "Passwords don't match!\n"); if (--lives == 0) -- 2.47.3