tools: bpftool: use correct argument in cgroup errors
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 25 Jun 2019 16:56:31 +0000 (09:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 26 Jun 2019 12:45:29 +0000 (14:45 +0200)
commit6c6874f401e5a0caab3b6a0663169e1fb5e930bb
treef0248cd960e65cb10934e21342ebeef04d5d617b
parentf7019b7b0ad14bde732b8953161994edfc384953
tools: bpftool: use correct argument in cgroup errors

cgroup code tries to use argv[0] as the cgroup path,
but if it fails uses argv[1] to report errors.

Fixes: 5ccda64d38cc ("bpftool: implement cgroup bpf operations")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/cgroup.c