about summary refs log tree commit diff
path: root/misc/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/getpass.c')
-rw-r--r--misc/getpass.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/getpass.c b/misc/getpass.c
index 74af9b5dc7..2caeb18668 100644
--- a/misc/getpass.c
+++ b/misc/getpass.c
@@ -59,9 +59,7 @@ getpass (prompt)
       /* Save the old one. */
       s = t;
       /* Tricky, tricky. */
-      t.c_lflag &= ~(ECHO|ISIG|ICANON);
-      t.c_cc[VTIME] = 0;
-      t.c_cc[VMIN] = 1;
+      t.c_lflag &= ~(ECHO|ISIG);
       tty_changed = (tcsetattr (fileno (in), TCSAFLUSH|TCSASOFT, &t) == 0);
     }
   else