Skip to contentSkip to conversation

wic: don't use host paths when looking for native tools

PATCH New Ed Bartosh 1 participant 1 message Apr 7, 2015

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 wic: don't use host paths when looking for native tools

exec_native_cmd should not use host paths in $PATH to avoid finding and using host tools.

[YOCTO: #6204]

---
 scripts/lib/wic/utils/oe/misc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/wic/utils/oe/misc.py +1 -1
index ea9b6e8..5facbe0 100644
@@ -81,7 +81,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
     Always need to execute native commands as_shell
     """
     native_paths = \
-        "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin:$PATH" % \
+        "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin" % \
         (native_sysroot, native_sysroot, native_sysroot)
     native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
     msger.debug("exec_native_cmd: %s" % cmd_and_args)
Signature · 1 line
2.1.4