[systemd-commits] src/shared
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Sep 18 02:13:03 PDT 2012
src/shared/logs-show.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit c198300fc44cdc62b43d7458ab9278b9c46fd733
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Sep 18 11:12:31 2012 +0200
journalctl: don't choke on entries with no MESSAGE= field
https://bugs.freedesktop.org/show_bug.cgi?id=50177
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index d60e5e5..2ddff15 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -536,6 +536,10 @@ static int output_cat(sd_journal *j, OutputMode mode, unsigned line,
r = sd_journal_get_data(j, "MESSAGE", &data, &l);
if (r < 0) {
+ /* An entry without MESSAGE=? */
+ if (r == -ENOENT)
+ return 0;
+
log_error("Failed to get data: %s", strerror(-r));
return r;
}
More information about the systemd-commits
mailing list