]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (gpt) fix size-1 error
authorKarel Zak <kzak@redhat.com>
Tue, 22 Aug 2017 12:48:14 +0000 (14:48 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Aug 2017 12:48:14 +0000 (14:48 +0200)
commit694a407de9ff9ce92f8a620d7161734d207a9f00
tree99305831cab47dbb1bb924e0f4785ca9772dc68b
parent3f30dedd56a68ee625bcd82c13f4745d03cbbeb9
libfdisk: (gpt) fix size-1 error

If partition does not require alignment, then don't call LBA align
function and don't use size-=1 (fdisk_align_lba_in_range() returns
unmodified size and we call size=-1 more than once for the same size).

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/gpt.c