From bb59f34c210b58471a4b3794fd63bb1373f80511 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 22 Mar 2024 03:09:35 +0900 Subject: [PATCH] journalctl-filter: add missing sd_journal_add_conjunction() Otherwise, if --facility= is specified with extra matches with '+', the facility filter will not be applied to the specified filter after '+'. --- src/journal/journalctl-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl-filter.c b/src/journal/journalctl-filter.c index 1223eeec02f..f013c42470a 100644 --- a/src/journal/journalctl-filter.c +++ b/src/journal/journalctl-filter.c @@ -311,7 +311,7 @@ static int add_facilities(sd_journal *j) { return r; } - return 0; + return sd_journal_add_conjunction(j); } static int add_matches_for_device(sd_journal *j, const char *devpath) { -- 2.47.3