765b685946
statically link against it. Fixed an error with binding file and WWIDs that include spaces. Cleaned up the messages from the directio checker function. Fixed the udev rules. Fixed a regression in multipath.conf parsing Fixed 457530, 457589
28 lines
798 B
Diff
28 lines
798 B
Diff
Index: multipath-tools/libmultipath/parser.c
|
|
===================================================================
|
|
--- multipath-tools.orig/libmultipath/parser.c
|
|
+++ multipath-tools/libmultipath/parser.c
|
|
@@ -239,12 +239,20 @@ alloc_strvec(char *string)
|
|
in_string = 0;
|
|
else
|
|
in_string = 1;
|
|
+ } else if (!in_string && (*cp == '{' || *cp == '}')) {
|
|
+ token = MALLOC(2);
|
|
|
|
+ if (!token)
|
|
+ goto out;
|
|
+
|
|
+ *(token) = *cp;
|
|
+ *(token + 1) = '\0';
|
|
+ cp++;
|
|
} else {
|
|
while ((in_string ||
|
|
(!isspace((int) *cp) && isascii((int) *cp) &&
|
|
- *cp != '!' && *cp != '#')) &&
|
|
- *cp != '\0' && *cp != '"')
|
|
+ *cp != '!' && *cp != '#' && *cp != '{' &&
|
|
+ *cp != '}')) && *cp != '\0' && *cp != '"')
|
|
cp++;
|
|
strlen = cp - start;
|
|
token = MALLOC(strlen + 1);
|