]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: remove trailing spaces when outputing to journal
authorSami Kerola <kerolasa@iki.fi>
Mon, 18 Jul 2016 20:49:27 +0000 (21:49 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Jul 2016 09:02:48 +0000 (11:02 +0200)
commitf1f5f21ee664c232df1454a322f2570301ee1add
tree3e789933e3612da77c1e44f7729e91a514918d89
parent3f0e7f371a398a5b8ef23ff94651de13f4f987d3
logger: remove trailing spaces when outputing to journal

Issues:
1. Whitespace-ish \r is not stripped, while it should be.
2. In journal \r is considered unprintable.

Lennart: "it is the duty of the client side to drop the trailing whitespace,
which "logger" doesn't do".

Reported-by: Ivan Babrou <ibobrik@gmail.com>
Explained-by: Lennart Poettering <lennart@poettering.net>
Reference: https://github.com/systemd/systemd/issues/3416
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/logger.c
tests/expected/logger/journald