Fix: make lttng expand path for trace output opt
[lttng-tools.git] / src / bin / lttng / commands / create.c
index b1f3e8a777a0420ca4f5de66c7c9032118780015..2778ef553cdd2a24c27567f780be0b1c950678c6 100644 (file)
@@ -115,7 +115,11 @@ static int create_session()
                        goto error;
                }
        } else {
-               traces_path = opt_output_path;
+               traces_path = expand_full_path(opt_output_path);
+               if (traces_path == NULL) {
+                       ret = CMD_ERROR;
+                       goto error;
+               }
        }
 
        ret = lttng_create_session(session_name, traces_path);
This page took 0.022736 seconds and 4 git commands to generate.