[uClibc]getpass() prints password after hitting enter

Sander Klein s.klein at quicknet.nl
Wed Apr 3 15:49:49 UTC 2002


Hi,

it's quite strange because I seem to have the same behaviour after
switching from uclibc-0.9.9 to 0.9.10 . I will try the test app to see
what happens...

Sander

On Wed, 3 Apr 2002, Erik Andersen wrote:

> On Tue Mar 26, 2002 at 05:13:18PM +0000, Kensuke Otake wrote:
> > As the title says, getpass() prints the password immediately after hitting enter.
> > This happens with all programs dynamically linked against uClibc 0.9.10.
> >
> > I read libc/unistd/getpass.c, and saw nothing wrong with its declaration of
> > tcsetattr().  However, you may wish to double-check.
>
> I just wrote up the following little test app, and it
> worked just as expected for me (i.e. no unwanted echoing).
> Perhaps something is hosing up your console somehow?
>
>
> #include <stdlib.h>
> #include <unistd.h>
> int main(void)
> {
>     char * foo;
>     foo=getpass( "Please enter a password:");
>     printf("Got it\nYou entered '%s'\n", foo);
>     exit(EXIT_SUCCESS);
> }
>
>  -Erik
>
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
>
>




More information about the uClibc mailing list