From xaa@xaa.stack.nl  Mon Nov 25 16:34:28 1996
Received: from terra.stack.nl (terra.stack.nl [131.155.140.128])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA22830
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Nov 1996 16:33:31 -0800 (PST)
Received: from xaa.stack.nl (uucp@localhost) by terra.stack.nl (8.8.3) with UUCP id BAA21564 for FreeBSD-gnats-submit@freebsd.org; Tue, 26 Nov 1996 01:29:23 +0100 (MET)
Received: (from xaa@localhost) by xaa.stack.nl (8.8.3/8.8.2) id BAA02825; Tue, 26 Nov 1996 01:32:23 +0100 (MET)
Message-Id: <199611260032.BAA02825@xaa.stack.nl>
Date: Tue, 26 Nov 1996 01:32:23 +0100 (MET)
From: xaa@stack.nl
Reply-To: xaa@stack.nl
To: FreeBSD-gnats-submit@freebsd.org
Subject: syslogd cannot log to ttys
X-Send-Pr-Version: 3.2

>Number:         2103
>Category:       bin
>Synopsis:       syslogd cannot log to ttys
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 25 16:40:08 PST 1996
>Closed-Date:    Mon Nov 25 18:36:30 PST 1996
>Last-Modified:  Mon Nov 25 18:39:10 PST 1996
>Originator:     Mark Huizer
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	A FreeBSD current machine

>Description:

	syslogd no longer logs to ttys, and gives errors about a
	/ in /dev//dev/ttyva (for example)

>How-To-Repeat:

	put a line * /dev/ttyva in your syslog.conf and see

>Fix:
	
	in syslogd.c near line 1171 strip the /dev/ part from the
	filename in case of a tty. ttymsg() in /usr.bin/wall will
	prepend /dev/, and it will fall over any '/' in the filename,
	due to security reasons

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Nov 25 18:36:30 PST 1996 
State-Changed-Why:  
Fixed in rev 1.14 and 1.15 of usr.sbin/syslogd.c, thanks for the report! 
>Unformatted:
