From: Pascal Volk Date: Sat, 17 Oct 2009 20:27:09 +0000 (+0000) Subject: doveadm pw: Use t_askpass() instead of getpass() X-Git-Tag: 2.0.alpha2~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ac581a03bf83ada86e66da93ab6e8d25e98c94c;p=thirdparty%2Fdovecot%2Fcore.git doveadm pw: Use t_askpass() instead of getpass() --HG-- branch : HEAD --- 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)