]> git.pld-linux.org Git - packages/parted.git/blob - 0048-libparted-Fix-to-report-success-when-setting-lvm-fla.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0048-libparted-Fix-to-report-success-when-setting-lvm-fla.patch
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
5  on bsd table
6
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
9 for the other flags.
10
11 Found as a result of this bug reported by Timo Riikonen:
12 https://bugzilla.gnome.org/show_bug.cgi?id=769831
13
14 Signed-off-by: Brian C. Lane <bcl@redhat.com>
15 ---
16  libparted/labels/bsd.c | 1 +
17  1 file changed, 1 insertion(+)
18
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)
24                                 bsd_data->raid = 0;
25                         }
26                         bsd_data->lvm = state;
27 +                       return 1;
28                 default:
29                         ;
30         }
31 -- 
32 2.7.4
33
This page took 0.0966 seconds and 3 git commands to generate.