diff options
Diffstat (limited to 'bitbake/lib/hashserv/client.py')
-rw-r--r-- | bitbake/lib/hashserv/client.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/hashserv/client.py b/bitbake/lib/hashserv/client.py index 4d3c35f00c..2559bbb3fb 100644 --- a/bitbake/lib/hashserv/client.py +++ b/bitbake/lib/hashserv/client.py | |||
@@ -40,7 +40,13 @@ class Client(object): | |||
40 | def connect_unix(self, path): | 40 | def connect_unix(self, path): |
41 | def connect_sock(): | 41 | def connect_sock(): |
42 | s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | 42 | s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |
43 | s.connect(path) | 43 | # AF_UNIX has path length issues so chdir here to workaround |
44 | cwd = os.getcwd() | ||
45 | try: | ||
46 | os.chdir(os.path.dirname(path)) | ||
47 | s.connect(os.path.basename(path)) | ||
48 | finally: | ||
49 | os.chdir(cwd) | ||
44 | return s | 50 | return s |
45 | 51 | ||
46 | self._connect_sock = connect_sock | 52 | self._connect_sock = connect_sock |