twin: hide not just passwords but also passphrases - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 13666ca73ef0c29e9f4c6870899943578e637730
 (DIR) parent b6863de7e1b95fd68623e1a03eca6d3aebc4732e
 (HTM) Author: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
       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(-)
       ---
 (DIR) 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, "passphrase")) {
                                        int i;
                                        
                                        i = n;