win: hide not just passwords but also passphrases

R=rsc, nicolesimons1986
CC=plan9port.codebot
http://codereview.appspot.com/4957042
This commit is contained in:
Mathieu Lonjaret 2011-08-26 16:40:04 -04:00 committed by Russ Cox
parent b6863de7e1
commit 13666ca73e

View file

@ -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, "passphrase")) {
int i;
i = n;