[oe-commits] [openembedded-core] 01/06: oe-run-native: ensure arguments get quoted

git at git.openembedded.org git at git.openembedded.org
Fri Jul 20 08:18:55 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e4c4542aab4e232d00c76999c26a3a39c5b05ed0
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Jul 17 14:34:17 2018 +0200

    oe-run-native: ensure arguments get quoted
    
    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-run-native | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-run-native b/scripts/oe-run-native
index 1131122..bbdd1d8 100755
--- a/scripts/oe-run-native
+++ b/scripts/oe-run-native
@@ -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'?"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list