summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-07-10 14:54:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-07-14 18:10:25 +0200
commitb2ad9e5273248f76aacc0485e3c8f3310c83857a (patch)
treed223787a3729fdc2ba978c5526a85477133a5b2a /tests
parent26b31033261427a3058a8fb994d54273bc93f7bf (diff)
main: return error to shell on evaluation problems
# nft add chain filter input { type filter hook inputt priority 0\; } <cmdline>:1:43-48: Error: unknown chain hook inputt add chain filter input { type filter hook inputt priority 0; } ^^^^^^ Before: # echo $? 0 After: # echo $? 1 Note that nft_parse() returns 1 on parsing errors and 0 + state->errs on evaluation problems, so return -1 as other functions do here to pass up the error to the main routine. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions