when custsomer started telnet service on board, and try to log it from
PC, there is strange character before login and passwd promp. please
look at attached 'telnet.jpg'.
root cause is that telnetd wrongly handled TIOCPKT_FLUSHREAD case when
pseudoterminal runs under packet mode. attachment patch is a fix.
Any comments would be appreciated!
--- telnetd.c-ori 2014-11-27 16:52:52.033601055 +0800
+++ telnetd.c 2014-11-27 16:53:22.096584793 +0800
@@ -610,6 +610,12 @@
localstat ();
}
#endif
+
+ if (c & 0x01)
+ {
+ pty_get_char (0);
+ }
+
if (c & TIOCPKT_FLUSHWRITE)
{
static char flushdata[] = { IAC, DM };