1 From fa15f7d65ad76872f9019f34dd2a1db0f678b0f9 Mon Sep 17 00:00:00 2001
2 From: Mike Fleetwood <mike.fleetwood@googlemail.com>
3 Date: Sat, 1 Oct 2016 16:40:19 +0100
4 Subject: [PATCH 48/53] libparted: Fix to report success when setting lvm flag
7 bsd_partition_set_flag() was falling through in the lvm flag case and
8 returning failure. Fix this by adding missing return 1 (success) like
11 Found as a result of this bug reported by Timo Riikonen:
12 https://bugzilla.gnome.org/show_bug.cgi?id=769831
14 Signed-off-by: Brian C. Lane <bcl@redhat.com>
16 libparted/labels/bsd.c | 1 +
17 1 file changed, 1 insertion(+)
19 diff --git a/libparted/labels/bsd.c b/libparted/labels/bsd.c
20 index a8525a4..23daea8 100644
21 --- a/libparted/labels/bsd.c
22 +++ b/libparted/labels/bsd.c
23 @@ -488,6 +488,7 @@ bsd_partition_set_flag (PedPartition* part, PedPartitionFlag flag, int state)
26 bsd_data->lvm = state;