Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2007 06:25:21 GMT
From:      Tim Daneliuk <tundra@tundraware.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/114398: /etc/ttys not parsed properly if last line does not end with \n
Message-ID:  <200707080625.l686PLsv013627@www.freebsd.org>
Resent-Message-ID: <200707080630.l686U7a8095386@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114398
>Category:       misc
>Synopsis:       /etc/ttys not parsed properly if last line does not end with \n
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 08 06:30:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Tim Daneliuk
>Release:        6.2-STABLE
>Organization:
TundraWare Inc.
>Environment:
FreeBSD ozzie.tundraware.com 6.2-STABLE FreeBSD 6.2-STABLE #11: Sat Jul  7 12:38:43 CDT 2007     toor@ozzie.tundraware.com:/usr/obj/usr/src/sys/OZZIE  i386

>Description:
Added this to the end of /etc/ttys:

  ttyd0   "/usr/libexec/getty dial.115200" unknown on insecure

This was unrecognized when a 'kill -HUP 1' was subsequently done.
The problem turns out to occur only when the last line of the file
(the line above) is not newline terminated.  Adding the newline
made the problem go away.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707080625.l686PLsv013627>