diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2013-03-08 12:05:48 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2013-03-08 12:08:29 +0100 |
commit | e14ddf1cac12f91685cbd5dac6c5127f8cf87863 (patch) | |
tree | 80343bd2d8dcd309362f61212b4507456d058d09 /src/journal | |
parent | f620dff8dd8822b837f314b8cd74c88bc74226a0 (diff) |
journal: allow priority 0 in stdout stream
Priority 0 is acceptable (it's LOG_EMERG).
BTW, I'm not sure why we allow priorities up to 999, but I'm leaving
this be for now.
http://lists.freedesktop.org/archives/systemd-devel/2013-March/009510.html
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 7b88f747db..54a5b3621a 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -175,7 +175,7 @@ static int stdout_stream_line(StdoutStream *s, char *p) { case STDOUT_STREAM_PRIORITY: r = safe_atoi(p, &s->priority); - if (r < 0 || s->priority <= 0 || s->priority >= 999) { + if (r < 0 || s->priority < 0 || s->priority >= 999) { log_warning("Failed to parse log priority line."); return -EINVAL; } |