]> git.ipfire.org Git - thirdparty/util-linux.git/commit
isosize: avoid reading more data than what is needed
authorSami Kerola <kerolasa@iki.fi>
Sat, 27 May 2017 20:18:57 +0000 (21:18 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 10:18:27 +0000 (12:18 +0200)
commite3e0054f5a2daa8ef8b8fd9b04bc9c0dbddec740
tree3d8233b5dd3654c8545f8c8b0bc9bafa6d194eca
parent504c03ecf8d5f205e740cd698a1c3b6d3303cb12
isosize: avoid reading more data than what is needed

In same go fix error reporting when input file is not long enough.

$ touch empty
$ isosize empty
isosize: empty: might not be an ISO filesystem
isosize: read error on empty: Success

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/isosize.c