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
case STDOUT_STREAM_PRIORITY:
r = safe_atoi(p, &s->priority);
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;
}
log_warning("Failed to parse log priority line.");
return -EINVAL;
}