1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

journald: do not overwrite syslog facility when parsing priority

https://bugs.freedesktop.org/show_bug.cgi?id=65610
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-06-10 18:10:12 -04:00
parent d783cd0423
commit 49998b3832

View File

@ -268,7 +268,7 @@ void syslog_parse_priority(char **p, int *priority) {
if (a < 0 || b < 0 || c < 0)
return;
*priority = a*100+b*10+c;
*priority = (*priority & LOG_FACMASK) | (a*100 + b*10 + c);
*p += k;
}