From 4dcf37de1e0162fcc9ab87222765c80f47e2a74d Mon Sep 17 00:00:00 2001 From: Neutron Soutmun Date: Mon, 17 Oct 2016 11:48:33 +0700 Subject: ipset: Fix the incorrect dynamic/static modules list * The module's name should not be partial matched. SETTYPE_MODLIST="ipset_hash_ipmac" It shoud not be matched with "ipset_hash_ip". Signed-off-by: Neutron Soutmun Signed-off-by: Jozsef Kadlecsik --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e1b1483..538b6f4 100644 --- a/configure.ac +++ b/configure.ac @@ -591,7 +591,7 @@ elif echo $SETTYPE_MODLIST | grep "all" >/dev/null; then done else for mod in $IPSET_ALL_MODULES; do - if echo $SETTYPE_MODLIST | grep $mod >/dev/null; then + if echo $SETTYPE_MODLIST | grep -w "$mod" >/dev/null; then : else AC_MSG_RESULT([ ${mod}]) @@ -599,7 +599,7 @@ else done AC_MSG_RESULT([ Dynamic modules:]) for mod in $IPSET_ALL_MODULES; do - if echo $SETTYPE_MODLIST | grep $mod >/dev/null; then + if echo $SETTYPE_MODLIST | grep -w "$mod" >/dev/null; then AC_MSG_RESULT([ ${mod}]) fi done -- cgit v1.2.3