device-mapper-multipath/config_space_fix.patch
Benjamin Marzinski 4fa3700b25 Updated to latest upstream 0.4.8 code: multipath-tools-080804.tgz (git
commit id: eb87cbd0df8adf61d1c74c025f7326d833350f78) fixed 451817,
    456397 (scsi_id_change.patch), 457530 (config_space_fix.patch)
457589 (static_libaio.patch)
2008-08-20 21:48:41 +00:00

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 == '}')) {
+ cp++;
+ token = MALLOC(2);
+
+ if (!token)
+ goto out;
+ *(token) = *cp;
+ *(token + 1) = '\0';
} 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);