From 0e56037129fb9ddca1ace8b18126e56cd587c5a6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Apr 2010 12:51:43 +1000 Subject: build: quote cross-answer strings This allows for spaces and special characters in cross-answers --- buildtools/wafsamba/samba_cross.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit