]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: fix leading space characters bug
authorKarel Zak <kzak@redhat.com>
Tue, 27 Mar 2018 08:40:13 +0000 (10:40 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Mar 2018 08:55:27 +0000 (10:55 +0200)
commit651c5d428c2ef103ee8c5b1a310d6f29f0304744
tree9d007566ef621fdf6e833537ec12ad49da5723f5
parent867c15ddb8cfe77cb828da0e948b847779136e56
column: fix leading space characters bug

The bug has been introduced during column(1) rewrite. The function
read_input() need to skip leading space only temporary to detect empty
lines, but the rest of the code has to use the original buffer (line).
I've tried to fix one of the symptoms by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa
(alter), but this solution is unnecessary and too complex.

Changes:

* don't ignore leading space
* remove unnecessary stuff introduced by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa
* fix regression test with incorrect separator

Addresses: https://github.com/karelzak/util-linux/issues/575
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1560283
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/TODO
tests/expected/column/table-input-separator-space
tests/ts/column/table
text-utils/column.c