diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-12-09 15:45:06 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-10 13:39:15 +0000 |
commit | fe205758a06a7e1cfcca504647da7a82770aeea4 (patch) | |
tree | fce4f4156a48a7016c977afa2bd39fa89d332d51 /bitbake/lib/hashserv/client.py | |
parent | f36484e88d21346357bd1fa1bef6fdcc42bed54a (diff) | |
download | poky-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.py | 2 |
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) |