bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17839: 24.4.50; read-passwd echoes password input in non-interactive


From: Eli Zaretskii
Subject: bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions
Date: Fri, 11 Jul 2014 17:02:48 +0300

> From: Michael Albinus <address@hidden>
> Cc: address@hidden,  address@hidden,  address@hidden,  address@hidden
> Date: Fri, 11 Jul 2014 14:43:10 +0200
> 
> Eli Zaretskii <address@hidden> writes:
> 
> >> Alternatively, shall we add (disable|enable)_echo functions to sysdep.c?
> >
> > Yes, please.  This will make emulating termios for Windows easier.
> 
> I've moved the code to the new function suppress_echo_on_tty of
> sysdep.c. For resetting the tty, no new function was necessary.

Thanks.  I added implementation for MS-Windows.

The result is not 100% satisfactory, as one needs to press RET twice
to finish the input, and it looks like some garbage is left in the
input buffer, since the following (normal) input gets something
strange.  A workaround is to press C-z, which produces EOF, instead of
RET, when password entry is finished.

I also needed a change in minibuf.c to end the reading loop on CR, not
just a newline.  If this is bad news for Posix platforms, we can make
that code conditional on Windows.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]