From 7f21186a25b325f5636c4415348eaccba711fe38 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Fri, 8 Jan 2016 17:54:14 -0600 Subject: [PATCH] Don't try to use pty packet mode on GNO, which doesn't support it. --- telnetd/telnetd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telnetd/telnetd.c b/telnetd/telnetd.c index 0faca47..de412e6 100644 --- a/telnetd/telnetd.c +++ b/telnetd/telnetd.c @@ -871,10 +871,12 @@ telnet(int f, int p, char *host) if (my_state_is_wont(TELOPT_ECHO)) send_will(TELOPT_ECHO, 1); +#ifndef __GNO__ /* * Turn on packet mode */ (void) ioctl(p, TIOCPKT, (char *)&on); +#endif #if defined(LINEMODE) && defined(KLUDGELINEMODE) /* @@ -1111,6 +1113,7 @@ telnet(int f, int p, char *host) } else { if (pcc <= 0) break; +#ifndef __GNO__ #ifdef LINEMODE /* * If ioctl from pty, pass it through net @@ -1156,6 +1159,9 @@ telnet(int f, int p, char *host) } pcc--; ptyip = ptyibuf+1; +#else /* __GNO__ */ + ptyip = ptyibuf; +#endif } }