0001-build-gn_run_binary.py-do-not-run-binary-from.patch 850 B

1234567891011121314151617181920212223242526
  1. From a2522cb27a828a7cd37ae553eb21d10764acf316 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Wed, 19 Jan 2022 05:48:04 +0000
  4. Subject: [PATCH] build: gn_run_binary.py: do not run binary from ./
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. build/gn_run_binary.py | 2 --
  8. 1 file changed, 2 deletions(-)
  9. diff --git a/build/gn_run_binary.py b/build/gn_run_binary.py
  10. index d7e2926fa4fba..f071a78d0fd83 100644
  11. --- a/build/gn_run_binary.py
  12. +++ b/build/gn_run_binary.py
  13. @@ -18,8 +18,6 @@ import sys
  14. # may prefix it with "./" to avoid picking up system versions that might
  15. # also be on the path.
  16. path = sys.argv[1]
  17. -if not os.path.isabs(path):
  18. - path = './' + path
  19. # The rest of the arguments are passed directly to the executable.
  20. args = [path] + sys.argv[2:]
  21. --
  22. 2.25.1