summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorQi.Chen@windriver.com <Qi.Chen@windriver.com>2019-04-11 15:53:55 +0800
committerKhem Raj <raj.khem@gmail.com>2019-04-11 11:30:35 -0700
commit0477c76116cd1dc479d0df0e9721cbbd729ac4d2 (patch)
treee005da12118a59b8ac25c61f3dde30b93eac1d4d /meta-oe
parentbe6481ca9f144708c8d6f741396be6e597eb8f18 (diff)
downloadmeta-openembedded-0477c76116cd1dc479d0df0e9721cbbd729ac4d2.tar.gz
multipath-tools: fix up patch to avoid segfault
When upgrading multipath, the following patch was accidently wrongly rebased, leaving set_value not declared in parser.h and resulting in segfault when running 'multipath' and 'multipathd'. 0027-RH-warn-on-invalid-regex-instead-of-failing.patch So fix things up and add the declaration back. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch25
1 files changed, 11 insertions, 14 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch b/meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch
index 57d04d02b..95624ad7a 100644
--- a/meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch
+++ b/meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch
@@ -1,4 +1,4 @@
1From d16de70b76919269561b4e404825f78286ea9a40 Mon Sep 17 00:00:00 2001 1From 56d65ecb1c6d814929f6ff3159ade09dc203cc83 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 26 Nov 2018 10:31:30 +0800 3Date: Mon, 26 Nov 2018 10:31:30 +0800
4Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17 4Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17
@@ -18,14 +18,15 @@ Upstream-Status: Pending
18update this patch to new version 18update this patch to new version
19 19
20Signed-off-by: Changqing Li <changqing.li@windriver.com> 20Signed-off-by: Changqing Li <changqing.li@windriver.com>
21
21--- 22---
22 libmultipath/dict.c | 29 ++++++++++++++++++++++------- 23 libmultipath/dict.c | 29 ++++++++++++++++++++++-------
23 libmultipath/parser.c | 13 +++++++++++++ 24 libmultipath/parser.c | 13 +++++++++++++
24 libmultipath/parser.h | 2 +- 25 libmultipath/parser.h | 1 +
25 3 files changed, 36 insertions(+), 8 deletions(-) 26 3 files changed, 36 insertions(+), 7 deletions(-)
26 27
27diff --git a/libmultipath/dict.c b/libmultipath/dict.c 28diff --git a/libmultipath/dict.c b/libmultipath/dict.c
28index a81c051..0689763 100644 29index eaad4f1..fb30577 100644
29--- a/libmultipath/dict.c 30--- a/libmultipath/dict.c
30+++ b/libmultipath/dict.c 31+++ b/libmultipath/dict.c
31@@ -59,6 +59,21 @@ set_str(vector strvec, void *ptr) 32@@ -59,6 +59,21 @@ set_str(vector strvec, void *ptr)
@@ -50,7 +51,7 @@ index a81c051..0689763 100644
50 set_yes_no(vector strvec, void *ptr) 51 set_yes_no(vector strvec, void *ptr)
51 { 52 {
52 char * buff; 53 char * buff;
53@@ -1346,8 +1361,8 @@ ble_ ## option ## _handler (struct config *conf, vector strvec) \ 54@@ -1373,8 +1388,8 @@ ble_ ## option ## _handler (struct config *conf, vector strvec) \
54 \ 55 \
55 if (!conf->option) \ 56 if (!conf->option) \
56 return 1; \ 57 return 1; \
@@ -61,7 +62,7 @@ index a81c051..0689763 100644
61 if (!buff) \ 62 if (!buff) \
62 return 1; \ 63 return 1; \
63 \ 64 \
64@@ -1363,7 +1378,7 @@ ble_ ## option ## _ ## name ## _handler (struct config *conf, vector strvec) \ 65@@ -1390,7 +1405,7 @@ ble_ ## option ## _ ## name ## _handler (struct config *conf, vector strvec) \
65 if (!conf->option) \ 66 if (!conf->option) \
66 return 1; \ 67 return 1; \
67 \ 68 \
@@ -70,7 +71,7 @@ index a81c051..0689763 100644
70 if (!buff) \ 71 if (!buff) \
71 return 1; \ 72 return 1; \
72 \ 73 \
73@@ -1466,16 +1481,16 @@ device_handler(struct config *conf, vector strvec) 74@@ -1493,16 +1508,16 @@ device_handler(struct config *conf, vector strvec)
74 return 0; 75 return 0;
75 } 76 }
76 77
@@ -116,18 +117,14 @@ index 92ef7cf..0e2cf49 100644
116 static int kw_level = 0; 117 static int kw_level = 0;
117 118
118diff --git a/libmultipath/parser.h b/libmultipath/parser.h 119diff --git a/libmultipath/parser.h b/libmultipath/parser.h
119index 62906e9..b6899fc 100644 120index 62906e9..b791705 100644
120--- a/libmultipath/parser.h 121--- a/libmultipath/parser.h
121+++ b/libmultipath/parser.h 122+++ b/libmultipath/parser.h
122@@ -76,7 +76,7 @@ extern int _install_keyword(vector keywords, char *string, 123@@ -77,6 +77,7 @@ extern void dump_keywords(vector keydump, int level);
123 extern void dump_keywords(vector keydump, int level);
124 extern void free_keywords(vector keywords); 124 extern void free_keywords(vector keywords);
125 extern vector alloc_strvec(char *string); 125 extern vector alloc_strvec(char *string);
126-extern void *set_value(vector strvec); 126 extern void *set_value(vector strvec);
127+extern void *set_regex_value(vector strvec); 127+extern void *set_regex_value(vector strvec);
128 extern int process_file(struct config *conf, char *conf_file); 128 extern int process_file(struct config *conf, char *conf_file);
129 extern struct keyword * find_keyword(vector keywords, vector v, char * name); 129 extern struct keyword * find_keyword(vector keywords, vector v, char * name);
130 int snprint_keyword(char *buff, int len, char *fmt, struct keyword *kw, 130 int snprint_keyword(char *buff, int len, char *fmt, struct keyword *kw,
131--
1322.7.4
133