From: Karel Zak Date: Mon, 8 Nov 2021 13:01:55 +0000 (+0100) Subject: sfdisk: fix typo in --move-data when check partition size X-Git-Tag: v2.38-rc1~182 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b383155ac6a94f14f5c661d2e4a62c1eef5b6e27;p=thirdparty%2Futil-linux.git sfdisk: fix typo in --move-data when check partition size Signed-off-by: Karel Zak --- diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index b08c945c06..65256c8a51 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -418,7 +418,7 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa warnx(_("failed to get start of the old partition; ignoring --move-data")); else if (fdisk_partition_get_start(pa) == fdisk_partition_get_start(orig_pa)) warnx(_("start of the partition has not been moved; ignoring --move-data")); - else if (fdisk_partition_get_size(orig_pa) < fdisk_partition_get_size(pa)) + else if (fdisk_partition_get_size(orig_pa) > fdisk_partition_get_size(pa)) warnx(_("new partition is smaller than original; ignoring --move-data")); else ok = 1;