From nkinkade@sub21-156.member.dsl-only.net  Thu Feb  6 13:36:55 2003
Return-Path: <nkinkade@sub21-156.member.dsl-only.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 098B237B406
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Feb 2003 13:36:55 -0800 (PST)
Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4917843FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Feb 2003 13:36:54 -0800 (PST)
	(envelope-from nkinkade@sub21-156.member.dsl-only.net)
Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10)
	id 18gthQ-0000Ia-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 06 Feb 2003 13:36:48 -0800
Message-Id: <E18gthQ-0000Ia-00@sub21-156.member.dsl-only.net>
Date: Thu, 06 Feb 2003 13:36:48 -0800
From: Nathan Kinkade <nkinkade@dsl-only.net>
Sender: Nathan Kinkade <nkinkade@sub21-156.member.dsl-only.net>
Reply-To: Nathan Kinkade <nkinkade@dsl-only.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: telnetd(8) manpage appears incorrect regarding gettytab
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48018
>Category:       docs
>Synopsis:       telnetd(8) manpage appears incorrect regarding gettytab
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 13:40:00 PST 2003
>Closed-Date:    Tue Jun 17 00:03:00 PDT 2003
>Last-Modified:  Tue Jun 17 00:03:00 PDT 2003
>Originator:     Nathan Kinkade <nkinkade@dsl-only.net>
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD sub21-156.member.dsl-only.net 4.7-STABLE FreeBSD 4.7-STABLE #5: Tue Nov 26 21:45:30 PST 2002 root@sub21-156.member.dsl-only.net:/usr/obj/usr/src/sys/SMP i386

>Description:
	The telnetd manpage clearly states in the Notes subsection that 
	the telnetd will consult /etc/gettytab and process the 'im'
	capability if specified, and that if the 'if' capability is 
	specified that this will override 'im'.  telnetd does process
	the 'im' capability, but ignores the 'if' capability.  It seems
	apparent from the telnetd source that it doesn't even check for
 	the existence of the 'if' capability.  Please see line 778-794 of
	file /usr/src/libexec/telnetd/telnetd.c.  Whereas, the manpage for
	telnetd(8) reads:
	"You can also use a System V style /etc/issue file by using the if 
	capability, which will override im.  The information specified in 
	either im or if will be displayed to both console and remote logins."
>How-To-Repeat:
	Create the file /etc/issue, or whatever you happen to have 
	specified in /etc/gettytab for the 'if' capability.  Then
	attempt to login to the machine in question using telnet.  The
	contents of the file /etc/issues is not displayed along with
	the login prompt, although the contents of the 'im' capability
	are displayed.
>Fix:
	I suppose there are two approaches.  Either configure telnetd to honor
	the 'if' capability of gettytab as the manpage states, or remove the
	offending text from the Notes subsection of the telnetd(8) manpage.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Tue Jun 17 00:00:33 PDT 2003 
State-Changed-Why:  
This PR is a duplicate of i386/23562. 
The problem is that handling the issue file has never been 
merged from the plain telnetd to the crypto one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48018 
>Unformatted:
