From: Neutron Soutmun Date: Mon, 17 Oct 2016 04:48:33 +0000 (+0700) Subject: ipset: Fix the incorrect dynamic/static modules list X-Git-Tag: v6.30~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4dcf37de1e0162fcc9ab87222765c80f47e2a74d;p=ipset 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 --- 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