[PATCH ipset 2/5] tests: hash:net.t: prefer tail -n

Florian Westphal <[email protected]> Thu, 23 Jul 2026 12:35:01 +0200
Newsgroups gmane.comp.security.firewalls.netfilter.devel
Message-ID <[email protected]>
seen on fedora 44:
 tail: cannot open '+2' for reading: No such file or directory

Signed-off-by: Florian Westphal <[email protected]>
---
 tests/hash:net.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hash:net.t b/tests/hash:net.t
index 4f88327684a4..73e36b5f80ab 100644
--- a/tests/hash:net.t
+++ b/tests/hash:net.t
@@ -61,7 +61,7 @@
 # List set and check the number of elements
 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 43520
 # Stress test del with range notation
-0 ./netgen.sh | tail +2|sed 's/^a/d/' | ipset restore
+0 ./netgen.sh | tail -n +2 | sed 's/^a/d/' | ipset restore
 # List set and check the number of elements
 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 0
 # Destroy test set
-- 
2.54.0