From 4bb1e5753a7f86f587769701d3f13d2c0c5b5e90 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 16:07:41 +0000 Subject: Apply patch 0045-libmultipath-warn-about-missing-braces-at-end-of-mul.patch patch_name: 0045-libmultipath-warn-about-missing-braces-at-end-of-mul.patch present_in_specfile: true location_in_specfile: 45 --- diff --git a/libmultipath/parser.c b/libmultipath/parser.c index a7285a3..48b54e8 100644 --- a/libmultipath/parser.c +++ b/libmultipath/parser.c @@ -544,7 +544,7 @@ process_stream(struct config *conf, FILE *stream, vector keywords, char *file) if (!strcmp(str, EOB)) { if (kw_level > 0) { free_strvec(strvec); - break; + goto out; } condlog(0, "unmatched '%s' at line %d of %s", EOB, line_nr, file); @@ -583,7 +583,8 @@ process_stream(struct config *conf, FILE *stream, vector keywords, char *file) free_strvec(strvec); } - + if (kw_level == 1) + condlog(1, "missing '%s' at end of %s", EOB, file); out: FREE(buf); free_uniques(uniques);