[uClibc]getpass() prints password after hitting enter
Axel Barnitzke
barney at xkontor.com
Thu Apr 4 09:05:55 UTC 2002
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.
-- Barney
--------------------------------------
++ axel (barney) barnitzke
++ it consultant
++ xkontor IT solutions
fon :: +49 40 4100959-0
email :: mailto:barney at xkontor.com
More information about the uClibc
mailing list