[Bug 274454] usr.sbin/syslogd: closing a configured terminal in parse_action(), line 3057

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Oct 2023 17:48:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274454

            Bug ID: 274454
           Summary: usr.sbin/syslogd: closing a configured terminal in
                    parse_action(), line 3057
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info

Created attachment 245605
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245605&action=edit
Patch for usr.sbin/syslogd/syslogd.c disabling closing of a terminal.

Since forever I've run syslogd(8) configured to show all log lines on
/dev/ttyvb, i.e.

*.*;mark.* /dev/ttyvb

Recent changes in CURRENT made /dev/ttyvb inactive. I've tracked the issue down
to closing the terminal in parse_action() in usr.sbin/syslogd/syslogd.c on line
3057.

I therefore suggest to omit closing a terminal in case it's a VTY. Without such
a change, a VTY is inaccessible by the user and completely useless.

Feel free to rework or reject the attached patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.