From owner-freebsd-stable Fri Jan 15 09:37:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13528 for freebsd-stable-outgoing; Fri, 15 Jan 1999 09:37:36 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from science-guy.npt.nuwc.navy.mil (relay.npt.nuwc.navy.mil [164.223.71.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13511 for ; Fri, 15 Jan 1999 09:37:27 -0800 (PST) (envelope-from tod@science-guy.npt.nuwc.navy.mil) Received: from science-guy.npt.nuwc.navy.mil (localhost [127.0.0.1]) by science-guy.npt.nuwc.navy.mil (8.8.8/8.8.8) with ESMTP id MAA02102; Fri, 15 Jan 1999 12:41:26 -0500 (EST) (envelope-from tod@science-guy.npt.nuwc.navy.mil) Message-ID: <369F7DC6.9CB54B6C@science-guy.npt.nuwc.navy.mil> Date: Fri, 15 Jan 1999 12:41:26 -0500 From: Tod Luginbuhl Reply-To: t.e.luginbuhl@ieee.org Organization: Code 2121, Naval Undersea Warfare Center X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Subject: Problem with telnetd and gettytab if capability Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Several months ago I noticed that when I telneted to my FreeBSD machine, telnetd responded normally, but then kick me off just prior to getting a logic prompt. I've looked into the problem on and off, but didn't really understand what was going on. Since I didn't see anything in the mail archives on this problem, I figured I had configured something incorrectly. Finally, I got desperate and did a new installed 2.2.8-STABLE from the CDs. The telnet problem was still there, so I dug into it. I guessed that my /etc/issue file was too long and experimented with a test file. I found that the /etc/issue file must contain no more than 1011 bytes for telnetd to work. telnetd sort of works when /etc/issue contains 1012 bytes but generates alot of ptyflush char errors. If the /etc/issue files contains more than 1012 bytes, telnetd kicks out just before giving a login prompt. I briefly looked at the source for telnetd, but didn't see anything obvious. This problem does not exist in 3.0-RELEASE, and I haven't done a diff between telnetd.c in 2.2.8 and 3.0 to see what is different in handling the if capability. But having gotten this far, I thought I'd inform the list. Tod ------------------------------------------------------------------------ Tod Luginbuhl email: t.e.luginbuhl@ieee.org Code 2121 luginbuhl@npt.nuwc.navy.mil Naval Undersea Warfare Center 1176 Howell Street Telephone: (401) 832-8241 Newport, Rhode Island FAX: (401) 832-7453 02841-1708 USA "Don't argue with drunks and fanatics!" -- Sun Wolf (Barbara Hambly) ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message