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:25 +0000 (21:30 -0400)
commit7dd11af83173888cf66ed493f9ba385efd8eff1a
treeb1508099a276be1f086d6038c5912f4fedeb289a
parent4c436586a38d5806f7ba8060e8a209dae9d78d01
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.028081 seconds and 4 git commands to generate.