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:
parent
d783cd0423
commit
49998b3832
@ -268,7 +268,7 @@ void syslog_parse_priority(char **p, int *priority) {
|
|||||||
if (a < 0 || b < 0 || c < 0)
|
if (a < 0 || b < 0 || c < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
*priority = a*100+b*10+c;
|
*priority = (*priority & LOG_FACMASK) | (a*100 + b*10 + c);
|
||||||
*p += k;
|
*p += k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user