https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295171

            Bug ID: 295171
           Summary: syslogd logs confusing messages when trying to log to
                    non-existing ttys
           Product: Base System
           Version: 14.4-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 270560
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=270560&action=edit
patch

When one of my NVMEs became to warm, smartd logged this fact using a priority
which triggered syslogd to inform me via a message on the tty:

May 10 07:25:15 <daemon.crit> voyager smartd[2431]: Device: /dev/nvme0,
Temperature 41 Celsius reached critical limit of 40 Celsius (Min/Max 16/47)

Additionally, this message appears each time:

May 10 07:25:15 voyager syslogd: /dev/:0: No such file or directory

This is because syslogd walks through getutxent() entries and finds one where
ut_line is set to ":0" (which probably comes from my logon through xdm).

A possible fix might be to check if ut_line contains a colon (and silently
ignore it in this case), see patch.

Another option would be not to complain in ttymsg_check() when stat()ing the
tty failes (and return NULL) as ttystat() does it in w(1).

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

Reply via email to