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
1 changed files with 1 additions and 1 deletions

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;
}