]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: avoid unneeded empty lines with '--list-free'
authorWolfram Sang <wsa@kernel.org>
Mon, 11 May 2020 16:10:48 +0000 (18:10 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 12 May 2020 08:09:46 +0000 (10:09 +0200)
commit9bf751716245359d58b29c1595e9bcaad8abda3c
treecc41fa2d309b004fef66dfd251c323f09adbfebf
parentf821f63fceca1d8480da3c724f7d3b383e6d7bd1
sfdisk: avoid unneeded empty lines with '--list-free'

Similar to commit 4a52959d1 ("(s)fdisk: avoid unneeded empty lines with
'--list'"), there were also two superfluous empty lines when /dev/sr0
didn't contain a medium. Refactor the '--list-free' code the same way as
in the mentioned commit.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
disk-utils/fdisk-list.c
disk-utils/fdisk-list.h
disk-utils/sfdisk.c