Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 1996 01:32:23 +0100 (MET)
From:      xaa@stack.nl
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2103: syslogd cannot log to ttys
Message-ID:  <199611260032.BAA02825@xaa.stack.nl>
Resent-Message-ID: <199611260040.QAA23139@freefall.freebsd.org>

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

>Number:         2103
>Category:       bin
>Synopsis:       syslogd cannot log to ttys
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 25 16:40:08 PST 1996
>Last-Modified:
>Originator:     Mark Huizer
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>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

>Audit-Trail:
>Unformatted:



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