diff options
author | Neutron Soutmun <neo.neutron@gmail.com> | 2016-10-17 11:48:33 +0700 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2016-10-17 13:48:12 +0200 |
commit | 4dcf37de1e0162fcc9ab87222765c80f47e2a74d (patch) | |
tree | ce4c09ab9426bd7855c71c964dcbb3d6b4541c33 | |
parent | f3db4ae432d548a5af9b8511b55f595ae6b1441f (diff) |
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 <neo.neutron@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
-rw-r--r-- | configure.ac | 4 |
1 files 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 |