mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
journal: fix up syslog facility when forwarding native messages (#5667)
Native journal messages (_TRANSPORT=journal) typically don't have a syslog facility attached to it. As a result when forwarding the messages to syslog they ended up with facility 0 (LOG_KERN). Apply syslog_fixup_facility() so we use LOG_USER instead. Fixes: #5640
This commit is contained in:
committed by
Lennart Poettering
parent
4e6f13af93
commit
b6a20306fa
@@ -279,7 +279,7 @@ void server_process_native_message(
|
||||
|
||||
if (message) {
|
||||
if (s->forward_to_syslog)
|
||||
server_forward_syslog(s, priority, identifier, message, ucred, tv);
|
||||
server_forward_syslog(s, syslog_fixup_facility(priority), identifier, message, ucred, tv);
|
||||
|
||||
if (s->forward_to_kmsg)
|
||||
server_forward_kmsg(s, priority, identifier, message, ucred);
|
||||
|
||||
Reference in New Issue
Block a user