projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75c180
)
Flush input when prompting for a password (bug 373).
author
Rob Landley
<rob@landley.net>
Mon, 12 Dec 2005 07:02:15 +0000
(07:02 -0000)
committer
Rob Landley
<rob@landley.net>
Mon, 12 Dec 2005 07:02:15 +0000
(07:02 -0000)
libbb/bb_askpass.c
patch
|
blob
|
history
diff --git
a/libbb/bb_askpass.c
b/libbb/bb_askpass.c
index 1ae1520d9bd9b85e4d28fe7811528868d2704547..42ccd66d322ca0dcfef2fece0c20ea5d6b813632 100644
(file)
--- 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;