]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl-filter: add missing sd_journal_add_conjunction()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Mar 2024 18:09:35 +0000 (03:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Mar 2024 14:51:47 +0000 (23:51 +0900)
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

index 1223eeec02f880eadaa869ad4646633aa987a985..f013c42470a2a84b495564e688bff80c4e6fae99 100644 (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) {