chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1261b
)
journalctl: for now complain if more than one match is provided since this is still...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 30 May 2012 20:30:35 +0000
(22:30 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 30 May 2012 20:30:35 +0000
(22:30 +0200)
src/journal/sd-journal.c
patch
|
blob
|
history
diff --git
a/src/journal/sd-journal.c
b/src/journal/sd-journal.c
index 4f3f1b5ff393aede86ecc858503c642c53af545d..09ce949d3bd21a1f5e6d9be65f69e2af504f8274 100644
(file)
--- 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) {