summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/hashserv/client.py
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-12-09 15:45:06 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-10 13:39:15 +0000
commitfe205758a06a7e1cfcca504647da7a82770aeea4 (patch)
treefce4f4156a48a7016c977afa2bd39fa89d332d51 /bitbake/lib/hashserv/client.py
parentf36484e88d21346357bd1fa1bef6fdcc42bed54a (diff)
downloadpoky-fe205758a06a7e1cfcca504647da7a82770aeea4.tar.gz
bitbake: hashserv: Fix broken AF_UNIX path length limit
Fixes the bug were long paths would break Unix domain socket clients (for real this time; the previous attempt was missing os.path.basename). Adds some tests to prevent regressions (Bitbake rev: 77790e3656048eff5cb1a086c727d86d32773b68) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/client.py')
-rw-r--r--bitbake/lib/hashserv/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/hashserv/client.py b/bitbake/lib/hashserv/client.py
index 7bbf0865d5..0ffd0c2ae2 100644
--- a/bitbake/lib/hashserv/client.py
+++ b/bitbake/lib/hashserv/client.py
@@ -213,7 +213,7 @@ class Client(object):
213 cwd = os.getcwd() 213 cwd = os.getcwd()
214 try: 214 try:
215 os.chdir(os.path.dirname(path)) 215 os.chdir(os.path.dirname(path))
216 self.loop.run_until_complete(self.client.connect_unix(path)) 216 self.loop.run_until_complete(self.client.connect_unix(os.path.basename(path)))
217 self.loop.run_until_complete(self.client.connect()) 217 self.loop.run_until_complete(self.client.connect())
218 finally: 218 finally:
219 os.chdir(cwd) 219 os.chdir(cwd)