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 '+'.
This commit is contained in:
Yu Watanabe
2024-03-26 23:51:47 +09:00
parent 22f2b5566d
commit bb59f34c21
+1 -1
View File
@@ -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) {