]> git.proxmox.com Git - mirror_lxc.git/commit
lxc_abstract_unix_connect: accomodate containers started before Oct 28
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 11 Nov 2013 18:32:14 +0000 (12:32 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 11 Nov 2013 21:27:04 +0000 (15:27 -0600)
commitbdb3f44147bc1a55a97131b4b39d42844ae4fb9e
tree53b88f3e27c2758a83f3eec89386dae16a55ab27
parent293ec758831aa307d834aa6dc1bee36bc604e674
lxc_abstract_unix_connect: accomodate containers started before Oct 28

commit aae93dd3dd20dd12c6b8f9f0490e2fb877ee3f09 fixed the command socket
name to use the right pathlen instead of always passing in the max
socket namelen.  However, this breaks lxc-info/lxc-list/etc for
containers started before that commit.  So if the correct command
sock name doesn't work, try the preexising one.

Note we can probably undo this "after awhile".  Maybe in august 2014.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/af_unix.c