Commit 022f1ba3 by Christian Brauner Committed by GitHub

Merge pull request #1685 from 0x0916/2017-07-08/remove-workaround-code

lxc_abstract_unix_connect: remove the workaround-code
parents 4359b5a9 b34cf53b
......@@ -123,12 +123,7 @@ int lxc_abstract_unix_connect(const char *path)
strncpy(&addr.sun_path[1], &path[1], strlen(&path[1]));
if (connect(fd, (struct sockaddr *)&addr, offsetof(struct sockaddr_un, sun_path) + len + 1)) {
int tmp = errno;
/* special case to connect to older containers */
if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) == 0)
return fd;
close(fd);
errno = tmp;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment