[uClibc]getpass() prints password after hitting enter
Erik Andersen
andersen at codepoet.org
Thu Apr 4 09:19:43 UTC 2002
On Thu Apr 04, 2002 at 11:05:55AM +0200, Axel Barnitzke wrote:
> Hi Eric,
>
> try this and you will see the problem:
>
> #include <stdlib.h>
> #include <unistd.h>
> int main(void)
> {
> char *foo, *bar;
> foo=getpass( "Please enter a password:");
> bar=getpass( "Re-enter new password:");
> exit(EXIT_SUCCESS);
> }
>
> I guess the TCSAFLUSH attribute in tcsetattr in combination
> with the new stdio design is the bad guy in this case but
> I don't know much about terminal settings.
Ok, yes I see it now. Thanks!
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list