]> git.ipfire.org Git - thirdparty/lxc.git/commit
tools: only create log file when requested 2344/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 23 May 2018 11:49:42 +0000 (13:49 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 23 May 2018 11:49:42 +0000 (13:49 +0200)
commitf6d79ec119739addc2a43109f7dd08b09f5bafa9
tree9ca5202c86da2ae51972476931c1fae80c3441d4
parent12ad9ba7a8011e0ab2a7ce7ac7d7c2b47669141d
tools: only create log file when requested

We used to initialize a log unconditionally before. This has led to scenarios
where users where left with container directories and an empty log file even
though they didn't request a log be created at all.
Switch all tools to only create a log file when the user explicitly requests
this.

Closes #1779.
Closes #2032.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
19 files changed:
src/lxc/tools/lxc_attach.c
src/lxc/tools/lxc_autostart.c
src/lxc/tools/lxc_cgroup.c
src/lxc/tools/lxc_checkpoint.c
src/lxc/tools/lxc_console.c
src/lxc/tools/lxc_copy.c
src/lxc/tools/lxc_create.c
src/lxc/tools/lxc_destroy.c
src/lxc/tools/lxc_device.c
src/lxc/tools/lxc_execute.c
src/lxc/tools/lxc_freeze.c
src/lxc/tools/lxc_info.c
src/lxc/tools/lxc_ls.c
src/lxc/tools/lxc_monitor.c
src/lxc/tools/lxc_snapshot.c
src/lxc/tools/lxc_start.c
src/lxc/tools/lxc_stop.c
src/lxc/tools/lxc_unfreeze.c
src/lxc/tools/lxc_wait.c