summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-11 17:42:06 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-11 17:42:06 +0200
commit6f6fdcb5906ff9259443b97daca429ed1de2559c (patch)
treeed7443294aba699df7e4ca588f123b0191b44814 /src/journal
parent9d1b6c8bcaef54e9a8b9174b969aa4d1c1a32d43 (diff)
parentec5ff4445cca6a1d786b8da36cf6fe0acc0b94c8 (diff)
Merge pull request #156 from filbranden/journal_leading_whitespace
journald: do not strip leading whitespace from messages
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-syslog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c
index 90b7530946..ffba451955 100644
--- a/src/journal/journald-syslog.c
+++ b/src/journal/journald-syslog.c
@@ -234,7 +234,8 @@ size_t syslog_parse_identifier(const char **buf, char **identifier, char **pid)
if (t)
*identifier = t;
- e += strspn(p + e, WHITESPACE);
+ if (strchr(WHITESPACE, p[e]))
+ e++;
*buf = p + e;
return e;
}