]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-run-native: ensure arguments get quoted
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 17 Jul 2018 12:34:17 +0000 (14:34 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jul 2018 10:52:07 +0000 (11:52 +0100)
If you pass quoted arguments to oe-run-native, they need to be passed
as-is to the underlying tool. Putting quotes around $@ ensures each
argument is quoted individually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-run-native

index 1131122e6852a7f6c808cc2d6ce95bc1f14baa96..bbdd1d8c1a8b0364bf93a5214753093b30834acc 100755 (executable)
@@ -60,7 +60,7 @@ tool_find=`/usr/bin/which $tool 2>/dev/null`
 
 if [ -n "$tool_find" ] ; then
     # add old path to allow usage of host tools
-    PATH=$PATH:$OLD_PATH $@
+    PATH=$PATH:$OLD_PATH "$@"
 else
     echo "Error: Unable to find '$tool' in $PATH"
     echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?"