From: David Goulet Date: Wed, 22 Aug 2012 16:12:27 +0000 (-0400) Subject: Fix: remove set subdir call that uses bad ptr X-Git-Tag: v2.1.0-rc2~2 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b816b2a6741cd41512a7102b24f278f8e297b864 Fix: remove set subdir call that uses bad ptr When copying a consumer object from the tracing session to a specific domain session, the original consumer of the session was modified by appending the session name and datetime once again. We ended up removing the call since at this stage in the code, the session name and date is already appended if necessary. Reported-by: Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 76d185700..a9bb2157e 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -1849,12 +1849,6 @@ static int copy_session_consumer(int domain, struct ltt_session *session) goto error; } - ret = consumer_set_subdir(session->consumer, session->name); - if (ret < 0) { - ret = LTTCOMM_FATAL; - goto error; - } - /* Append correct directory to subdir */ strncat(consumer->subdir, dir_name, sizeof(consumer->subdir) - strlen(consumer->subdir) - 1);