]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: packetpath/flowtables: open all temporary files in /tmp
authorJeremy Sowden <jeremy@azazel.net>
Sun, 24 Mar 2024 14:59:08 +0000 (14:59 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 2 Apr 2024 15:14:09 +0000 (17:14 +0200)
The test used to do I/O over a named pipe in $PWD, until Phil changed it
to create the pipe in /tmp.  However, he missed one `socat` command.
Update that too.

Fixes: 3a9f29e21726 ("tests: shell: packetpath/flowtables: Avoid spurious EPERM")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/packetpath/flowtables

index 18a57a9b2b726ba58832475f0361ef61e7eabce4..ec7dfeb75c000e6606c2d52230451995debeb6f5 100755 (executable)
@@ -77,7 +77,7 @@ ip netns exec $R sysctl -w net.netfilter.nf_conntrack_tcp_timeout_established=86
 }
 
 # A trick to control the timing to send a packet
-ip netns exec $S socat TCP6-LISTEN:10001 GOPEN:pipefile,ignoreeof &
+ip netns exec $S socat TCP6-LISTEN:10001 GOPEN:/tmp/pipefile-$rnd,ignoreeof &
 sleep 1
 ip netns exec $C socat -b 2048 PIPE:/tmp/pipefile-$rnd 'TCP:[2001:db8:ffff:22::1]:10001' &
 sleep 1