[systemd-devel] [PATCH] journalctl: fix logic with parameter "-u"

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Mar 19 12:43:19 PDT 2013

On Tue, Mar 19, 2013 at 03:05:38PM +0100, harald at redhat.com wrote:
> From: Harald Hoyer <harald at redhat.com>
> When using "-p" and "-b" in combination with "-u", the output is not
> what you would expect. The reason is the sd_journal_add_disjunction()
> call in add_matches_for_unit() and add_matches_for_user_unit(), which
> adds two ORs without taking the other conditions to every OR.
I wonder if it would be possible to do this differently, by defining
a richer match tree. Looking at journal-internal.h, matches are already
hierarchical, so it would be a question of providing the right interface.


More information about the systemd-devel mailing list