X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=2778ef553cdd2a24c27567f780be0b1c950678c6;hp=b1f3e8a777a0420ca4f5de66c7c9032118780015;hb=3badf2bf32930336a4902002d840402adb6859e1;hpb=51c96b7d50ed76d2f42fba47e0a7ff8eaf38b7ef diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index b1f3e8a77..2778ef553 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -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);