summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-30 22:30:35 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-30 22:30:35 +0200
commitab4979d202e12d60bb2e31dee32fd3e79a4453fd (patch)
tree98e5caa20fdfe2dd61cf40cbd9c4ecfb730a673e /src/journal
parentba1261bc02693ac8a7712ade14aab8e22989ba88 (diff)
journalctl: for now complain if more than one match is provided since this is still broken
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/sd-journal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 4f3f1b5ff3..09ce949d3b 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) {