summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-20 12:51:43 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-20 15:50:26 +1000
commit0e56037129fb9ddca1ace8b18126e56cd587c5a6 (patch)
tree76edd3b769ab0bd3703133b3564e1f16efda0dfe /buildtools
parentf2bd78cb2652d3db69d0016b94c4506ada4b61c0 (diff)
downloadsamba-0e56037129fb9ddca1ace8b18126e56cd587c5a6.tar.gz
samba-0e56037129fb9ddca1ace8b18126e56cd587c5a6.tar.bz2
samba-0e56037129fb9ddca1ace8b18126e56cd587c5a6.zip
build: quote cross-answer strings
This allows for spaces and special characters in cross-answers
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_cross.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py
index 7c3e7d228c..b20555f673 100644
--- a/buildtools/wafsamba/samba_cross.py
+++ b/buildtools/wafsamba/samba_cross.py
@@ -96,7 +96,7 @@ class cross_Popen(Utils.pproc.Popen):
global cross_answers_incomplete
cross_answers_incomplete = True
(retcode, retstring) = ans
- args = ['/bin/sh', '-c', 'echo %s; exit %d' % (retstring, retcode)]
+ args = ['/bin/sh', '-c', "echo '%s'; exit %d" % (retstring, retcode)]
real_Popen.__init__(*(obj, args), **kw)