summaryrefslogtreecommitdiff
path: root/libparted
diff options
context:
space:
mode:
authorMike Fleetwood <mike.fleetwood@googlemail.com>2016-10-01 16:40:19 +0100
committerBrian C. Lane <bcl@redhat.com>2016-10-04 14:43:29 -0700
commitabc97eaf92f5ce6e30893e355a74159e5827f654 (patch)
treeee177e24126a744aa151f62a07bd9de1d15dce92 /libparted
parent3651a28b4622b2511d374521ba546b9b2d0e0694 (diff)
downloadparted-abc97eaf92f5ce6e30893e355a74159e5827f654.tar.gz
libparted: Fix to report success when setting lvm flag on bsd table
bsd_partition_set_flag() was falling through in the lvm flag case and returning failure. Fix this by adding missing return 1 (success) like for the other flags. Found as a result of this bug reported by Timo Riikonen: https://bugzilla.gnome.org/show_bug.cgi?id=769831 Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'libparted')
-rw-r--r--libparted/labels/bsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libparted/labels/bsd.c b/libparted/labels/bsd.c
index a8525a4..23daea8 100644
--- a/libparted/labels/bsd.c
+++ b/libparted/labels/bsd.c
@@ -488,6 +488,7 @@ bsd_partition_set_flag (PedPartition* part, PedPartitionFlag flag, int state)
bsd_data->raid = 0;
}
bsd_data->lvm = state;
+ return 1;
default:
;
}