Fix: lttng list command with network path
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index f18e8ca07358050f58926faece98fb5a500ce910..3bef3b6d71a1e46c22883428382dbd247910b6d2 100644 (file)
@@ -1549,7 +1549,7 @@ int _lttng_create_session_ext(const char *name, const char *url,
        lsm.u.uri.size = size;
 
        if (uris[0].dtype != LTTNG_DST_PATH && strlen(uris[0].subdir) == 0) {
-               ret = snprintf(uris[0].subdir, sizeof(uris[0].subdir), "/%s-%s", name,
+               ret = snprintf(uris[0].subdir, sizeof(uris[0].subdir), "%s-%s", name,
                                datetime);
                if (ret < 0) {
                        PERROR("snprintf uri subdir");
This page took 0.024213 seconds and 5 git commands to generate.