svn commit: trunk/busybox/libbb

landley at busybox.net landley at busybox.net
Mon Dec 12 07:02:20 UTC 2005


Author: landley
Date: 2005-12-11 23:02:15 -0800 (Sun, 11 Dec 2005)
New Revision: 12844

Log:
Flush input when prompting for a password (bug 373).


Modified:
   trunk/busybox/libbb/bb_askpass.c


Changeset:
Modified: trunk/busybox/libbb/bb_askpass.c
===================================================================
--- trunk/busybox/libbb/bb_askpass.c	2005-12-12 06:58:53 UTC (rev 12843)
+++ trunk/busybox/libbb/bb_askpass.c	2005-12-12 07:02:15 UTC (rev 12844)
@@ -44,6 +44,7 @@
 	static char passwd[PWD_BUFFER_SIZE];
 
 	tcgetattr(STDIN_FILENO, &old);
+	tcflush(STDIN_FILENO, TCIFLUSH);
 
 	size = sizeof(passwd);
 	ret = passwd;




More information about the busybox-cvs mailing list