Fix: remote kernel stream paths contain too much information
[lttng-tools.git] / src / bin / lttng-sessiond / kernel-consumer.c
index 236ce0eb6abe2948213e01ec5e2816ba8d62495f..2d0605e9bc1b308a13886cf9f38b9af64b118920 100644 (file)
@@ -42,7 +42,10 @@ static char *create_channel_path(struct consumer_output *consumer)
        assert(consumer);
 
        /* Get the right path name destination */
-       if (consumer->type == CONSUMER_DST_LOCAL) {
+       if (consumer->type == CONSUMER_DST_LOCAL ||
+                       (consumer->type == CONSUMER_DST_NET &&
+                                       consumer->relay_major_version == 2 &&
+                                       consumer->relay_minor_version >= 11)) {
                pathname = strdup(consumer->domain_subdir);
                if (!pathname) {
                        PERROR("Failed to copy domain subdirectory string %s",
This page took 0.023791 seconds and 4 git commands to generate.