aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2011-05-05 08:53:43 +0200
committerHannes Reinecke <hare@suse.de>2011-05-05 09:09:27 +0200
commitb8d26fcfdd1d554e396bf572b0092e1d0f9dce80 (patch)
treedb34b0d54a7292f5e9fb6f2334f6655bd606d77d
parent091ba626b70279dcdd8741c8c0e2c0b581f0d334 (diff)
downloadmultipath-tools-b8d26fcfdd1d554e396bf572b0092e1d0f9dce80.tar.gz
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 <hare@suse.de>
-rw-r--r--libmultipath/config.c2
1 files changed, 1 insertions, 1 deletions
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);