diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-05-25 23:26:00 +0000 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-05-25 23:26:00 +0000 |
commit | 09f4540d667a98e548bf5dfc94784382ebedc963 (patch) | |
tree | 5de93af9689e4db7d56f94ff5f0ba57750d0737c /python | |
parent | c59a92cb1a73468a0e2af7102632dda48d811f5b (diff) | |
download | build_soong-09f4540d667a98e548bf5dfc94784382ebedc963.tar.gz build_soong-09f4540d667a98e548bf5dfc94784382ebedc963.tar.bz2 build_soong-09f4540d667a98e548bf5dfc94784382ebedc963.zip |
Revert "Revert "Revert "Add path interposer"""
This reverts commit c59a92cb1a73468a0e2af7102632dda48d811f5b.
Reason for revert: tests are broken with long OUT_DIRs
They're directly calling net.Listen, and not using the fallback
for long socket names.
Change-Id: Id14cbd499fd9b36c6926b7552d3554340cb0916c
Diffstat (limited to 'python')
-rw-r--r-- | python/scripts/stub_template_host.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/scripts/stub_template_host.txt b/python/scripts/stub_template_host.txt index 386298eb..b90a28b5 100644 --- a/python/scripts/stub_template_host.txt +++ b/python/scripts/stub_template_host.txt @@ -18,6 +18,8 @@ def SearchPathEnv(name): for directory in search_path: if directory == '': continue path = os.path.join(directory, name) + if os.path.islink(path): + path = os.path.realpath(path) # Check if path is actual executable file. if os.path.isfile(path) and os.access(path, os.X_OK): return path |