chiark / gitweb /
journal: fix parsing of facility in syslog messages
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Jul 2013 16:57:33 +0000 (12:57 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Aug 2013 15:14:14 +0000 (11:14 -0400)
commitac50788b0f5aeee09e7d45db28ae8ab7f39cd52e
treed215e1df7bf20f2e44c04256d1f44248d9885e20
parent763a24a3b62f0eaac43fb58202ad3594f1af09ac
journal: fix parsing of facility in syslog messages

In 49998b383 (journald: do not overwrite syslog facility when
parsing priority) journald started ignoring facility part when
reading service stderr to convert to syslog messages. In this
case it is fine, because only the priority is allowed.

But the same codepath is used for syslog messages, where the
facility should be used. Split the two codepaths by explicitly
specyfing whether the facility should be ignored or not.

https://bugzilla.redhat.com/show_bug.cgi?id=988814
src/journal/journald-stream.c
src/journal/journald-syslog.c
src/journal/journald-syslog.h