summaryrefslogtreecommitdiffstats
path: root/config_space_fix.patch
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@fedoraproject.org>2008-08-20 21:48:41 +0000
committerBenjamin Marzinski <bmarzins@fedoraproject.org>2008-08-20 21:48:41 +0000
commit4fa3700b25f28485679b1caf4a9ff46adbfb8602 (patch)
tree7281ada6cdfe4a9bd6e849724110ae0f2f0d44c8 /config_space_fix.patch
parent4b4f4537f2a13f1db49ededb48a0797e2f1cd255 (diff)
Updated to latest upstream 0.4.8 code: multipath-tools-080804.tgz (gitdevice-mapper-multipath-0_4_8-6_fc10
commit id: eb87cbd0df8adf61d1c74c025f7326d833350f78) fixed 451817, 456397 (scsi_id_change.patch), 457530 (config_space_fix.patch) 457589 (static_libaio.patch)
Diffstat (limited to 'config_space_fix.patch')
-rw-r--r--config_space_fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/config_space_fix.patch b/config_space_fix.patch
new file mode 100644
index 0000000..25aca7a
--- /dev/null
+++ b/config_space_fix.patch
@@ -0,0 +1,27 @@
+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);