]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journald-syslog.c
journald: do not strip leading whitespace from messages 156/head
authorFilipe Brandenburger <filbranden@google.com>
Thu, 11 Jun 2015 05:33:44 +0000 (22:33 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Thu, 11 Jun 2015 05:35:26 +0000 (22:35 -0700)
commitec5ff4445cca6a1d786b8da36cf6fe0acc0b94c8
treeacda2f2ddb8343701b473c2234512d3b657a9e33
parent37c47e5e5b8e47dd886ed6e8355b1203082b4a3e
journald: do not strip leading whitespace from messages

Keep leading whitespace for compatibility with older syslog
implementations.  Also useful when piping formatted output to the
`logger` command.  Keep removing trailing whitespace.

Tested with `pstree | logger` and checking that the output of
`journalctl | tail` included aligned and formatted output.

Confirmed that all test cases still pass as expected.
src/journal/journald-syslog.c