From: Hannes Reinecke Date: Thu, 5 May 2011 06:53:43 +0000 (+0200) Subject: Use regmatch when checking for duplicates in hwtable X-Git-Tag: upstream/0.5.0~106^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8d26fcfdd1d554e396bf572b0092e1d0f9dce80;p=platform%2Fupstream%2Fmultipath-tools.git Use regmatch when checking for duplicates in hwtable When elimininating duplicates in the config file we should rather be using regmatch, otherwise it's near to impossible to guess how the actual regexp in the built-in hardware table is specified. Signed-off-by: Hannes Reinecke --- diff --git a/libmultipath/config.c b/libmultipath/config.c index b2d1b40..b217449 100644 --- a/libmultipath/config.c +++ b/libmultipath/config.c @@ -399,7 +399,7 @@ factorize_hwtable (vector hw, int n) break; j = n; vector_foreach_slot_after(hw, hwe2, j) { - if (hwe_strmatch(hwe1, hwe2)) + if (hwe_regmatch(hwe1, hwe2)) continue; /* dup */ merge_hwe(hwe2, hwe1);