Skip to content

Commit

Permalink
Ensure execsnoop.py replace result is not misplaced
Browse files Browse the repository at this point in the history
Found by yonghong-song while reviewing PR iovisor#1570.

Signed-off-by: Nathan Scott <[email protected]>
  • Loading branch information
natoscott committed Feb 4, 2018
1 parent cf0792f commit f13107a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/execsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f13107a

Please sign in to comment.