user avatar
lxc: always strdup lxc.rootfs.mount
Josep Puigdemont authored
The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: default avatarJosep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
7d7c3816
Name Last commit Last update