mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
journal: check filtering after parsing timestamp, identifier, pid, and so on
Otherwise, filtering regex with '^' does not work.
Fixes a bug in 87a13dabbd (v253).
Fixes #38361.
This commit is contained in:
@@ -392,9 +392,6 @@ void manager_process_syslog_message(
|
||||
if (!client_context_test_priority(context, priority))
|
||||
return;
|
||||
|
||||
if (client_context_check_keep_log(context, msg, strlen(msg)) <= 0)
|
||||
return;
|
||||
|
||||
syslog_ts = msg;
|
||||
syslog_ts_len = syslog_skip_timestamp(&msg);
|
||||
if (syslog_ts_len == 0)
|
||||
@@ -403,6 +400,9 @@ void manager_process_syslog_message(
|
||||
|
||||
syslog_parse_identifier(&msg, &identifier, &pid);
|
||||
|
||||
if (client_context_check_keep_log(context, msg, strlen(msg)) <= 0)
|
||||
return;
|
||||
|
||||
if (m->config.forward_to_syslog)
|
||||
forward_syslog_raw(m, priority, buf, raw_len, ucred, tv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user