[systemd-devel] [PATCH] journalctl: fix logic with parameter "-u"
harald.hoyer at gmail.com
Wed Mar 20 03:08:10 PDT 2013
Am 19.03.2013 20:43, schrieb Zbigniew Jędrzejewski-Szmek:
> 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.
Of course, but don't expect the patch from me.
More information about the systemd-devel