]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Revert "sfdisk: exit with error if rereading partition table fails"
authorKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2016 09:01:03 +0000 (11:01 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2016 09:01:03 +0000 (11:01 +0200)
This reverts commit e0d30ef4c0a8baf5ad52f4ebce2ceef1944d711b. It was
mistake to applied this commit to the stable branch. It's already
reverted in master branch too (see
78e7f78896f2c9cf1b2615c8c555a64dcd9d2642 for more details).

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c

index f7afd9f44a62738dafea86cdd025ad058dc2b52d..3f742d2703c705a46fc481037f62f5c99cc039d5 100644 (file)
@@ -534,7 +534,7 @@ static int write_changes(struct sfdisk *sf)
                        rc = move_partition_data(sf, sf->partno, sf->orig_pa);
                if (!rc) {
                        fdisk_info(sf->cxt, _("\nThe partition table has been altered."));
-                       rc = fdisk_reread_partition_table(sf->cxt);
+                       fdisk_reread_partition_table(sf->cxt);
                }
        }
        if (!rc)