Re: [LTP] ima_kexec.sh: Use %s in printf to prevent evaluating cmdline backslashes

linuxtestproject.agent
2026-04-15T05:29:41Z

Hi Avinesh,

On Wed, 15 Apr 2026 06:46:36 +0200, Avinesh Kumar wrote:
> ima_kexec.sh: Use %s in printf to prevent evaluating cmdline backslashes

> - printf "$cmdline" > file1
> + printf "%s" "$cmdline" > file1

Fix is correct. Please add a Fixes: tag pointing to the commit that
introduced `printf "$cmdline"`.

---
Note:

Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/24437929854

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer