]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: avoid libmagic telling an empty file is binary
authorSami Kerola <kerolasa@iki.fi>
Mon, 25 May 2020 07:30:24 +0000 (08:30 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 25 May 2020 12:16:45 +0000 (14:16 +0200)
commit2eb527722af2093038bf38d4554c086d20df79c9
treed3bafbcc056fdf4cf58fb62dd1b29fa0ae7b7bb9
parent3b98a789995f6541e7eaff728cadc992e08e68d8
more: avoid libmagic telling an empty file is binary

My earlier change that took libmagic in use to identify mime-type of an input
file caused empty files to be marked binary.  Before the change empty files
were simply displayed as empty.  This change will restore that behavior.

Addresses: 09070e1a658e70ec203150e4fa5f486b32771858
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c