Fix: destroy session removes the default config file
authorPartha Pratim Mukherjee <ppm.floss@gmail.com>
Sun, 5 Jul 2015 19:31:15 +0000 (15:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Jul 2015 01:30:01 +0000 (21:30 -0400)
commit1dac0189ed7311146ff2cfc6605bac81213ee90b
tree5965839f83c82912562b069bae14c7a69f566387
parent5d5baaa365798454df0fa41879399dd88a8413c1
Fix: destroy session removes the default config file

Destroy session command by default removes the default config file
without checking the current session. As a result when we call any
other command which expects a default session by calling
get_session_name() function, it fails.

This patch will fix this by checking that the default config file gets
removed only when destroy session is called with the current session.

Fixes: #887
Signed-off-by: Partha Pratim Mukherjee <ppm.floss@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/destroy.c
src/bin/lttng/conf.c
src/bin/lttng/conf.h
src/bin/lttng/utils.c
src/bin/lttng/utils.h
This page took 0.024946 seconds and 4 git commands to generate.