twin: hide not just passwords but also passphrases - plan9port - [fork] Plan 9 … | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 13666ca73ef0c29e9f4c6870899943578e637730 | |
parent b6863de7e1b95fd68623e1a03eca6d3aebc4732e | |
Author: Mathieu Lonjaret <[email protected]> | |
Date: Fri, 26 Aug 2011 16:40:04 -0400 | |
win: hide not just passwords but also passphrases | |
R=rsc, nicolesimons1986 | |
CC=plan9port.codebot | |
http://codereview.appspot.com/4957042 | |
Diffstat: | |
M src/cmd/9term/win.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c | |
t@@ -541,7 +541,7 @@ stdoutproc(void *v) | |
// clumsy but effective: notice password | |
// prompts so we can disable echo. | |
password = 0; | |
- if(cistrstr(buf, "password")) { | |
+ if(cistrstr(buf, "password") || cistrstr(buf, "passphr… | |
int i; | |
i = n; |