[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: |
Michael Albinus |
Subject: |
bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions |
Date: |
Thu, 10 Jul 2014 16:36:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> If someone is motivated, I would even accept a patch that turns echo off
> temporarily.
Well, I've tried this 'cos I believe it is important. The idea is to
give the prompt in read-passwd the text property 'hide-chars. In
noninteractive mode, emacs writes "." instead of echoing the password
while typing. You can test it with
# emacs -batch -eval '(progn (message (read-string "Prompt1: ")) (message
(read-passwd "Prompt2: ")) (message (read-string "Prompt3: ")))'
The patch is not perfect (it doesn't handled multi-byte chars, and I
have tested it only under Gnu/Linux), but it is a first step.
Comments?
> Stefan
Best regards, Michael.
diff
Description: Text Data
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions,
Michael Albinus <=
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Stefan Monnier, 2014/07/10
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Eli Zaretskii, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Eli Zaretskii, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Eli Zaretskii, 2014/07/11
- bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions, Michael Albinus, 2014/07/11