From avb@raven.korax.net  Sun Dec 28 12:11:56 1997
Received: from raven.korax.net (avb@raven.korax.net [209.82.39.7])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA02620
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Dec 1997 12:11:56 -0800 (PST)
          (envelope-from avb@raven.korax.net)
Received: (from avb@localhost)
	by raven.korax.net (8.8.8/8.8.7+norelay) id PAA09285;
	Sun, 28 Dec 1997 15:13:23 -0500 (EST)
	(envelope-from avb)
Message-Id: <199712282013.PAA09285@raven.korax.net>
Date: Sun, 28 Dec 1997 15:13:23 -0500 (EST)
From: Alex Bulan <avb@raven.korax.net>
Reply-To: avb@raven.korax.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: %m, %r, %s, %v in /etc/gettytab not expanding for telnet connections
X-Send-Pr-Version: 3.2

>Number:         5390
>Category:       misc
>Synopsis:       %m, %r, %s, %v in /etc/gettytab not expanding for telnet connections
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 28 12:20:01 PST 1997
>Closed-Date:    Sun Dec 28 14:25:48 PST 1997
>Last-Modified:  Sun Dec 28 14:26:52 PST 1997
>Originator:     Alex Bulan
>Release:        FreeBSD 2.2.5-RELEASE i386, possibly others?
>Organization:
Korax Online Inc., Toronto, Ontario, Canada
>Environment:

	AMD K5-166, 64MB, FreeBSD 2.2.5-RELEASE

>Description:

	From the gettytab(5) manpage:

	The initial message, and login message, im and lm may include any of the
	following character sequences, which expand to information about the en-
	vironment in which getty(8) is running.

	The character sequences are %d, %h, %t, %m, %r, %s, %v, and %%.

	%m, %r, %s and %v expand correctly on local consoles but expand to NULL
	(empty string) on telnet connections.


>How-To-Repeat:

	Edit /etc/gettytab and change the initial message to include one or more of
	%m, %r, %s, %v.  Kill -HUP the init process.  Telnet in.

>Fix:
	
	Temporary fix: replace the character sequences with the literal strings
	they're supposed to expand to.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Dec 28 14:25:48 PST 1997 
State-Changed-Why:  
Merged David Nugent's fixes from revision 1.8. 
>Unformatted:
