mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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
This commit is contained in:
parent
3f1c958f6f
commit
29f11005f5
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user