]> granicus.if.org Git - sudo/commitdiff
Pass timeout to tgetpass()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 27 Feb 2010 17:39:18 +0000 (12:39 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 27 Feb 2010 17:39:18 +0000 (12:39 -0500)
src/conversation.c

index 16d83b2fd10c7ead34b845e226fcddedb67abae0..f498cbdb004e250cfffa16580da1888ef2238d6a 100644 (file)
@@ -70,8 +70,7 @@ sudo_conversation(int num_msgs, const struct sudo_conv_message msgs[],
                SET(flags, TGP_ECHO);
            case SUDO_CONV_PROMPT_ECHO_OFF:
                /* Read the password unless interrupted. */
-               /* XXX - look up passwd timeout and pass in XXX */
-               pass = tgetpass(msg->msg, 0, flags);
+               pass = tgetpass(msg->msg, msg->timeout, flags);
                if (pass == NULL)
                    goto err;
                repl->reply = estrdup(pass);