From f13107a3f759ff02f0e5bed2e3ac6ad0dd09f523 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 5 Feb 2018 08:28:20 +1100 Subject: [PATCH] Ensure execsnoop.py replace result is not misplaced Found by yonghong-song while reviewing PR #1570. Signed-off-by: Nathan Scott --- tools/execsnoop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/execsnoop.py b/tools/execsnoop.py index 651f944a1f82..9b406dfd335d 100755 --- a/tools/execsnoop.py +++ b/tools/execsnoop.py @@ -130,7 +130,7 @@ } """ -bpf_text.replace("MAXARG", args.max_args) +bpf_text = bpf_text.replace("MAXARG", args.max_args) if args.ebpf: print(bpf_text) exit()