]> granicus.if.org Git - sudo/commitdiff
now use tgetpass
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Jun 1994 00:02:34 +0000 (00:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Jun 1994 00:02:34 +0000 (00:02 +0000)
check.c

diff --git a/check.c b/check.c
index 73c88b6bdaa994149bac8d565a4de31c81b381f1..3572902a7a3a34f14ec319cc1c3e58104d17df34 100644 (file)
--- a/check.c
+++ b/check.c
@@ -258,8 +258,8 @@ static void check_passwd()
      * you get TRIES_FOR_PASSWORD times to guess your password
      */
     while (counter > 0) {
-       pass = (char *) getpass("Password:");
-       if (*pass == '\0')
+       pass = tgetpass("Password:", PASSWORD_TIMEOUT);
+       if (!pass || *pass == '\0')
            exit(0);
        if (!strcmp(encrypted, (char *) crypt(pass, encrypted)))
            return;             /* if the passwd is correct return() */