diff options
author | 2009-11-20 15:01:30 +0100 | |
---|---|---|
committer | 2009-11-20 15:01:30 +0100 | |
commit | 158f998257e4e96683e563e139ffdb358d6eff67 (patch) | |
tree | 6d3f17772c40afbb662fb72075eb667ac2ca817b | |
parent | update the man pages (diff) | |
download | lxc-158f998257e4e96683e563e139ffdb358d6eff67.tar.gz lxc-158f998257e4e96683e563e139ffdb358d6eff67.tar.bz2 lxc-158f998257e4e96683e563e139ffdb358d6eff67.zip |
Do not chdir when daemonize
With the previous modifications, a temporary directory is created
to mount the rootfs in order to have the system container to remount
itself the '/' directory.
But in case of daemonize, we change the directory, so when the rootfs
is specified with a relative path, we can not access it.
Don't chdir, as that will be done automatically later in the chroot
setup.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r-- | src/lxc/lxc_start.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lxc/lxc_start.c b/src/lxc/lxc_start.c index 9e14b8f..c2c5fa4 100644 --- a/src/lxc/lxc_start.c +++ b/src/lxc/lxc_start.c @@ -183,8 +183,6 @@ int main(int argc, char *argv[]) open(my_args.log_file, O_RDONLY | O_CLOEXEC); open(my_args.log_file, O_RDONLY | O_CLOEXEC); } - - chdir("/"); } save_tty(&tios); |