From owner-freebsd-bugs Sat Dec 7 14:53:36 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA14023 for bugs-outgoing; Sat, 7 Dec 1996 14:53:36 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA14013; Sat, 7 Dec 1996 14:53:25 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA20664; Sat, 7 Dec 1996 23:52:46 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA25896; Sat, 7 Dec 1996 23:52:46 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id XAA23646; Sat, 7 Dec 1996 23:35:46 +0100 (MET) From: J Wunsch Message-Id: <199612072235.XAA23646@uriah.heep.sax.de> Subject: Re: 2.x telnetd handles CTRL-M differently than other ttys FDIV044 To: bde@zeta.org.au (Bruce Evans) Date: Sat, 7 Dec 1996 23:35:46 +0100 (MET) Cc: freebsd-bugs@freefall.freebsd.org, scrappy@freefall.freebsd.org, uhclem@nemesis.lonestar.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612071634.DAA31145@godzilla.zeta.org.au> from Bruce Evans at "Dec 8, 96 03:34:50 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Bruce Evans wrote: > >The attached program demonstrates the original problem. > > Here is a half baked fix for the problem demonstrated by the program. > ICRNL works now. Unusual settings like INLCR and IGNCR are still broken. I think that's the wrong approach. According to my tcpdump, and to the RFCs, the mere problem is that the telnet client sends \r only where the RFC requires it to send \r\n if LINE and EDIT modes are turned on. telnetd seems to rely on this, and only converts \r\n back to the local EOL character, but not a sole \r as it is sent by FreeBSD's telnet client. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)