journalctl: for now complain if more than one match is provided since this is still broken

This commit is contained in:
Lennart Poettering 2012-05-30 22:30:35 +02:00
parent ba1261bc02
commit ab4979d202

View File

@ -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) {