]> git.proxmox.com Git - mirror_lxc.git/commit
coverity: Do chdir following chroot
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Feb 2014 16:17:48 +0000 (11:17 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Feb 2014 18:42:21 +0000 (13:42 -0500)
commit6b9324bd45374e32465f9fff6e24b1af837c445b
tree693be5958603734b77a0d3853c7760f124479f3c
parent4473e38b99cd0b3f20839c2bf02058a987319f1d
coverity: Do chdir following chroot

We used to do chdir(path), chroot(path). That's correct but not properly
handled coverity, so do chroot(path), chdir("/") instead as that's the
recommended way.

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