Unverified Commit dd75b97c by Long Wang Committed by Stéphane Graber

lxc_abstract_unix_connect: remove the workaround-code

commit bdb3f441 says that we may undo the change in august 2014. I think that it is time to do that. Signed-off-by: 's avatarLong Wang <w@laoqinren.net>
parent a792aa17
......@@ -113,12 +113,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