mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-14 20:25:41 +00:00
journalctl: for now complain if more than one match is provided since this is still broken
This commit is contained in:
parent
ba1261bc02
commit
ab4979d202
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user