summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-05 21:09:54 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-05 21:09:54 +0000
commit571286fe5044f5a425856814d9a774d25139f037 (patch)
treed11bc9bc3e50664437368109ba52aeeff574811b
parent28b5b97f169ebfc49902d230c60ff3fb15674c4e (diff)
Don't disable canonical input.
-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