summaryrefslogtreecommitdiff
path: root/libbb/bb_askpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/bb_askpass.c')
-rw-r--r--libbb/bb_askpass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index 1ae1520..42ccd66 100644
--- a/libbb/bb_askpass.c
+++ b/libbb/bb_askpass.c
@@ -44,6 +44,7 @@ char *bb_askpass(int timeout, const char * prompt)
static char passwd[PWD_BUFFER_SIZE];
tcgetattr(STDIN_FILENO, &old);
+ tcflush(STDIN_FILENO, TCIFLUSH);
size = sizeof(passwd);
ret = passwd;