]> git.ipfire.org Git - thirdparty/util-linux.git/commit
col: avoid extra newline if no input
authorSami Kerola <kerolasa@iki.fi>
Tue, 9 May 2017 18:10:49 +0000 (19:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 May 2017 08:53:28 +0000 (10:53 +0200)
commitb6b5272b03ea9d3fa15601801d4d0f76ea4440f1
treeb512519b48faa8e64a3eaf19f28a8a490f391cff
parentc6b0cbdd95ff30788cdb6afee707e20f0dd640b8
col: avoid extra newline if no input

BSD fix missed for 22 years, and all util-linux releases so far.

Backported-from: https://github.com/dspinellis/unix-history-repo/commit/2a15260a2a3230e02f57c096fb4c5e1f797bf4f3
Addresses: https://github.com/karelzak/util-linux/issues/422
Reported-by: Pavel Raiskup <praiskup@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/col.c