]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
tests: cidr.sh: Respect IPSET_BIN env var
authorPhil Sutter <phil@nwl.cc>
Thu, 12 Dec 2024 12:47:31 +0000 (13:47 +0100)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sun, 15 Dec 2024 16:08:36 +0000 (17:08 +0100)
Allow callers to specify the ipset binary to test (with), just like
runtest.sh itself does, too.

Fixes: d05e7e9349bd1 ("Out of bound access in hash:net* types fixed")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/cidr.sh

index 2c4d9399f02dc8dca5317386ec73cdf6f536d2c1..ca01f063dee3449e720fa4326bf20e81b0867f03 100755 (executable)
@@ -35,7 +35,7 @@ NETS="0.0.0.0/1
 255.255.255.252/31
 255.255.255.254/32"
 
-ipset="../src/ipset"
+ipset="${IPSET_BIN:-../src/ipset}"
 
 if which netmask >/dev/null 2>&1; then
        net_first_addr() {