]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Still parse messages that don't contain an RFC 3164 timestamp.
authored <ed@FreeBSD.org>
Fri, 22 Jun 2018 20:53:39 +0000 (20:53 +0000)
committered <ed@FreeBSD.org>
Fri, 22 Jun 2018 20:53:39 +0000 (20:53 +0000)
commit335720eb7349c804a35ab0f4dc54eb624578a253
treec139406f494646146922dcead41ce4c537b31091
parente348e73fd163ef8096170daf5cc1006086b9b794
Still parse messages that don't contain an RFC 3164 timestamp.

The changes made in r326573 required that messages always start with an
RFC 3164 timestamp. It looks like certain devices, but also certain
logging libraries (Python 3's "logging" package) simply don't generate
RFC 3164 formatted messages containing a timestamp.

Make timestamps optional again. When the timestamp is missing, also
assume that the message contains no hostname. The first word of the
message likely already belongs to the message payload.

PR: 229236
Reported by: Michael Grimm & Marek Zarychta
Reviewed by: glebius (cursory)
MFC after: 1 week
usr.sbin/syslogd/syslogd.c