chiark / gitweb /
fishdescriptor: Cope if donor is in a chroot without /proc
`our_sockname' contains something like
/proc/DONOR/root/run/user/UID/fishdescriptor/SOCKET
When I tested this I did it in a chroot where /proc was mounted. In
such a chroot /proc/DONOR/root -> /. So this works.
But if there is no /proc, it does not work.
Instead, we can can and should assume that the path in the donor is
relative to its own root. Ie, we can just use `sockname'.
CC: George Dunlap <george.dunlap@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>