summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/ipt-restore/0010-noflush-new-chain_0
blob: 2817376ed913ee4c975ec57fd4fe619aa6765c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

# assert input feed from buffer doesn't trip over
# added nul-chars from parsing chain line.

$XT_MULTI iptables-restore --noflush <<EOF
*filter
:foobar - [0:0]
-A foobar -j ACCEPT
COMMIT
EOF