Bug 48018

Summary: telnetd(8) manpage appears incorrect regarding gettytab
Product: Documentation Reporter: Nathan Kinkade <nkinkade>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Nathan Kinkade 2003-02-06 21:40:00 UTC
	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."

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.
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.
Comment 1 Yar Tikhiy freebsd_committer freebsd_triage 2003-06-17 08:00:33 UTC
State Changed
From-To: open->closed

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.