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 authored and sync_forks committed Jul 31, 2024
1 parent a12dd99 commit a8e19ee
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 a8e19ee

Please sign in to comment.