From: David Goulet Date: Wed, 23 Nov 2011 21:22:02 +0000 (-0500) Subject: Fix missing channel name copy for auto channel creation X-Git-Tag: v2.0-pre15~80 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=596219f7620add67e61a4666e7b5f4b1e79ade1a;p=lttng-tools.git Fix missing channel name copy for auto channel creation Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index e079afb7d..4bb724037 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -2445,6 +2445,7 @@ static int cmd_enable_event(struct ltt_session *session, int domain, ret = LTTCOMM_FATAL; goto error; } + snprintf(attr->name, NAME_MAX, "%s", channel_name); /* Use the internal command enable channel */ ret = cmd_enable_channel(session, domain, attr);