summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-02-10 00:02:17 +0300
committerAndreas Schneider <asn@cryptomilk.org>2022-02-11 07:58:57 +0000
commit29f11005f56ebc2202e7883ea4d9ca7e7a46d9bb (patch)
treeaefd253d4813fc4f7a18f0169ddfea74f5034b3c /buildtools
parent3f1c958f6fa9d2991185f4e281a377a295d09f9c (diff)
downloadsamba-29f11005f56ebc2202e7883ea4d9ca7e7a46d9bb.tar.gz
wafsamba: replace 'echo -n' with printf
This patch makes samba_cross.py compatible with old bash (e.g. 3.2) Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Feb 11 07:58:57 UTC 2022 on sn-devel-184
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 0868a855a0d..c6f8c2a0ef2 100644
--- a/buildtools/wafsamba/samba_cross.py
+++ b/buildtools/wafsamba/samba_cross.py
@@ -134,7 +134,7 @@ class cross_Popen(Utils.subprocess.Popen):
cross_answers_incomplete = True
add_answer(ca_file, msg, ans)
(retcode, retstring) = ans
- args = ['/bin/sh', '-c', "echo -n '%s'; exit %d" % (retstring, retcode)]
+ args = ['/bin/sh', '-c', "printf %%s '%s'; exit %d" % (retstring, retcode)]
real_Popen.__init__(*(obj, args), **kw)