From charly@Fachschaften.TU-Muenchen.DE  Thu Mar 23 17:03:48 1995
Received: from fssrv.fachschaften.tu-muenchen.de (fssrv.fachschaften.tu-muenchen.de [129.187.176.20]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id RAA02858 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Mar 1995 17:03:43 -0800
Received: by fssrv.fachschaften.tu-muenchen.de id AA00320
  (5.67a8/IDA-1.5 for FreeBSD-gnats-submit@freebsd.org); Thu, 23 Mar 1995 23:25:30 +0100
Message-Id: <199503232225.AA00320@fssrv.fachschaften.tu-muenchen.de>
Date: Thu, 23 Mar 1995 23:25:30 +0100
From: "Jan (Charly) Conrad" <charly@Fachschaften.TU-Muenchen.DE>
Reply-To: charly@Fachschaften.TU-Muenchen.DE
To: FreeBSD-gnats-submit@freebsd.org
Subject: getty
X-Send-Pr-Version: 3.2

>Number:         271
>Category:       bin
>Synopsis:       getty truncates hostname
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 23 17:10:01 1995
>Closed-Date:    Thu Mar 23 21:15:24 PST 1995
>Last-Modified:
>Originator:     Jan Conrad
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Technische Universitaet Muenchen (Germany)
>Environment:

	System which hostname is longer than 32 chars

>Description:

	getty truncates hostname after the 32th char
	(because it still thinks MAXHOSTNAMELEN = 32)

>How-To-Repeat:

	hostname <long name>; kill -1 1; 
	look at login...

>Fix:
	Apply the following patch to subr.c in /usr/src/libexec/getty:
	49a50
	> #include <sys/param.h>
	306c307
	< char	editedhost[32];
	---
	> char	editedhost[MAXHOSTNAMELEN];
		
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Thu Mar 23 21:15:24 PST 1995 
State-Changed-Why:  
Fix applied. 
>Unformatted:



