build: quote cross-answer strings
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 02:51:43 +0000 (12:51 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Apr 2010 05:50:26 +0000 (15:50 +1000)
This allows for spaces and special characters in cross-answers

buildtools/wafsamba/samba_cross.py

index 7c3e7d228c0068bc76cb06f36196a1247e48a47b..b20555f673d77dc7c0b3eae2077645069e422674 100644 (file)
@@ -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)