[LTP] Makefile: Skip test-metadata on cross compile
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Fri Jul 10 10:30:37 CEST 2026
Hi Petr,
On Fri, 10 Jul 2026 07:55:49 +0200, Petr Vorel wrote:
> Makefile: Skip test-metadata on cross compile
--- [PATCH 2/8] ---
> + printf "* $i "
$i is used directly as part of the printf format string rather than
passed as a separate argument. A filename containing a '%' character
would be interpreted as a format specifier.
The portable form is:
printf "* %s " "$i"
--- [PATCH 4/8] ---
> + $METAPARSE $i > tmp.json
Both $METAPARSE and $i are unquoted. If METAPARSEDIR (and therefore
METAPARSE) contains spaces, the shell will perform word-splitting on
the variable before exec, breaking the invocation.
The quoted form:
"$METAPARSE" "$i" > tmp.json
Verdict - Needs revision
---
Note:
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
More information about the ltp
mailing list