]> granicus.if.org Git - ipset/commitdiff
ipset: Fix the incorrect dynamic/static modules list
authorNeutron Soutmun <neo.neutron@gmail.com>
Mon, 17 Oct 2016 04:48:33 +0000 (11:48 +0700)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 17 Oct 2016 11:48:12 +0000 (13:48 +0200)
* 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 <neo.neutron@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
configure.ac

index e1b1483a23eeeae9b870936a7361d84b57c6f5dd..538b6f41c0a7169edd3e89de6712dafe9862a349 100644 (file)
@@ -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