From: Lennart Poettering Date: Wed, 30 May 2012 20:30:35 +0000 (+0200) Subject: journalctl: for now complain if more than one match is provided since this is still... X-Git-Tag: v184~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab4979d202e12d60bb2e31dee32fd3e79a4453fd;p=systemd journalctl: for now complain if more than one match is provided since this is still broken --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 4f3f1b5f..09ce949d 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -118,6 +118,11 @@ _public_ int sd_journal_add_match(sd_journal *j, const void *data, size_t size) if (size <= 0) return -EINVAL; + /* FIXME: iterating with multiple matches is currently + * broken */ + if (j->matches) + return -ENOTSUP; + le_hash = htole64(hash64(data, size)); LIST_FOREACH(matches, m, j->matches) {