summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/ChangeLog1
-rw-r--r--bitbake/lib/bb/build.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/ChangeLog b/bitbake/ChangeLog
index fbf86c649..31e2bb49e 100644
--- a/bitbake/ChangeLog
+++ b/bitbake/ChangeLog
@@ -2,6 +2,7 @@ Changes in Bitbake 1.8.x:
- Correctly redirect stdin when forking
- If parsing errors are found, exit, too many users miss the errors
- Remove supriours PREFERRED_PROVIDER warnings
+ - Start to fix path quoting
Changes in Bitbake 1.8.4:
- Make sure __inherit_cache is updated before calling include() (from Michael Krelin)
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index bcbc55eea..4aaa6b262 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -150,7 +150,7 @@ def exec_func_shell(func, d):
if bb.msg.debug_level['default'] > 0: f.write("set -x\n")
data.emit_env(f, d)
- f.write("cd %s\n" % os.getcwd())
+ f.write("cd '%s'\n" % os.getcwd())
if func: f.write("%s\n" % func)
f.close()
os.chmod(runfile, 0775)
@@ -189,7 +189,7 @@ def exec_func_shell(func, d):
else:
maybe_fakeroot = ''
lang_environment = "LC_ALL=C "
- ret = os.system('%s%ssh -e %s' % (lang_environment, maybe_fakeroot, runfile))
+ ret = os.system('%s%ssh -e "%s"' % (lang_environment, maybe_fakeroot, runfile))
try:
os.chdir(prevdir)
except: