diff options
| -rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0027-RH-warn-on-invalid-regex-instead-of-failing.patch | 25 |
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 57d04d02bb..95624ad7a9 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 @@ | |||
| 1 | From d16de70b76919269561b4e404825f78286ea9a40 Mon Sep 17 00:00:00 2001 | 1 | From 56d65ecb1c6d814929f6ff3159ade09dc203cc83 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Mon, 26 Nov 2018 10:31:30 +0800 | 3 | Date: Mon, 26 Nov 2018 10:31:30 +0800 |
| 4 | Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17 | 4 | Subject: [PATCH] From 0000000000000000000000000000000000000000 Mon Sep 17 |
| @@ -18,14 +18,15 @@ Upstream-Status: Pending | |||
| 18 | update this patch to new version | 18 | update this patch to new version |
| 19 | 19 | ||
| 20 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 20 | Signed-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 | ||
| 27 | diff --git a/libmultipath/dict.c b/libmultipath/dict.c | 28 | diff --git a/libmultipath/dict.c b/libmultipath/dict.c |
| 28 | index a81c051..0689763 100644 | 29 | index 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 | ||
| 118 | diff --git a/libmultipath/parser.h b/libmultipath/parser.h | 119 | diff --git a/libmultipath/parser.h b/libmultipath/parser.h |
| 119 | index 62906e9..b6899fc 100644 | 120 | index 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 | -- | ||
| 132 | 2.7.4 | ||
| 133 | |||
