Blame SOURCES/0218-RHBZ-1459370-add-feature-fix.patch

4728c8
---
4728c8
 libmultipath/structs.c |   10 ++++++++++
4728c8
 1 file changed, 10 insertions(+)
4728c8
4728c8
Index: multipath-tools-130222/libmultipath/structs.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/libmultipath/structs.c
4728c8
+++ multipath-tools-130222/libmultipath/structs.c
4728c8
@@ -511,6 +511,16 @@ add_feature (char **f, char *n)
4728c8
 	if (!n || *n == '0')
4728c8
 		return 0;
4728c8
 
4728c8
+	/* default feature is null */
4728c8
+	if (!*f)
4728c8
+	{
4728c8
+		l = asprintf(&t, "1 %s", n);
4728c8
+		if (l == -1)
4728c8
+			return 1;
4728c8
+		*f = t;
4728c8
+		return 0;
4728c8
+	}
4728c8
+
4728c8
 	/* Check if feature is already present */
4728c8
 	if (strstr(*f, n))
4728c8
 		return 0;