diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-17 21:42:36 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-17 23:47:23 +0000 |
commit | cfa1b98e832026b0fa5f1ca2f8f5f65bddf12a31 (patch) | |
tree | 60da3e2456f37c60dec7dcf639d58938b69c0e57 /src/journal/journald-stream.c | |
parent | 45d39b4f81c6c92bfd9dd45c9d6ac0c68a477633 (diff) |
journal: don't remove leading spaces
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r-- | src/journal/journald-stream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 4e8bcd822d..07a0f1bf41 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -286,10 +286,12 @@ static int stdout_stream_log(StdoutStream *s, const char *p) { static int stdout_stream_line(StdoutStream *s, char *p) { int r; + char *orig; assert(s); assert(p); + orig = p; p = strstrip(p); switch (s->state) { @@ -378,7 +380,7 @@ static int stdout_stream_line(StdoutStream *s, char *p) { return 0; case STDOUT_STREAM_RUNNING: - return stdout_stream_log(s, p); + return stdout_stream_log(s, orig); } assert_not_reached("Unknown stream state"); |