]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
Don't call setup_mount_entries if the list is empty
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 4 Jan 2013 18:56:13 +0000 (13:56 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 9 Jan 2013 15:22:54 +0000 (10:22 -0500)
commitc1dc38c2e805cc82489d442185ad57d8334bde76
treec96e6964d0f16a7470e26c74c2ab3934545fa388
parentfd5c4f905861964cb473cf3df3336447a9365962
Don't call setup_mount_entries if the list is empty

There's no good reason to call setup_mount_entries if we don't have any
lxc.mount.entry. This also avoids an issue on bionic where the tmpfile()
call in setup_mount_entries requires the presence of /tmp which isn't the
case by default.

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