You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

  1. From: https://gitlab.com/samba-team/samba/-/merge_requests/2374/diffs?commit_id=90bb371863d5a44845f47ebbceeb60842b46eda7
  2. From 79b2f38c27c8df918d8260fe838f55bcf6d3eb73 Mon Sep 17 00:00:00 2001
  3. From: "Sergey V. Lobanov" <sergey@lobanov.in>
  4. Date: Thu, 10 Feb 2022 00:02:17 +0300
  5. Subject: [PATCH] wafsamba: replace 'echo -n' with printf
  6. This patch makes samba_cross.py compatible with old bash (e.g. 3.2)
  7. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
  8. ---
  9. buildtools/wafsamba/samba_cross.py | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. --- a/buildtools/wafsamba/samba_cross.py
  12. +++ b/buildtools/wafsamba/samba_cross.py
  13. @@ -134,7 +134,7 @@ class cross_Popen(Utils.subprocess.Popen
  14. cross_answers_incomplete = True
  15. add_answer(ca_file, msg, ans)
  16. (retcode, retstring) = ans
  17. - args = ['/bin/sh', '-c', "echo -n '%s'; exit %d" % (retstring, retcode)]
  18. + args = ['/bin/sh', '-c', "printf '%s'; exit %d" % (retstring, retcode)]
  19. real_Popen.__init__(*(obj, args), **kw)