]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: don't hardcode iptables/nc path in test_tcpnotify_user
authorStanislav Fomichev <sdf@google.com>
Thu, 17 Jan 2019 19:56:12 +0000 (11:56 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 23 Jan 2019 11:56:30 +0000 (12:56 +0100)
commit3da6d349fde4b11fe89267615426d3f31030b040
treedfb861823eea11cf3a564b1a86fbe0e846241f6f
parentdb60f380559be49d8faf2b911e95487fa638e879
selftests/bpf: don't hardcode iptables/nc path in test_tcpnotify_user

system() is calling shell which should find the appropriate full path
via $PATH. On some systems, full path to iptables and/or nc might be
different that we one we have hardcoded.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_tcpnotify_user.c