Blame SOURCES/0048-libparted-Fix-to-report-success-when-setting-lvm-fla.patch

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