From: David Goulet Date: Thu, 5 Apr 2012 15:39:59 +0000 (-0400) Subject: Fix: make lttng expand path for trace output opt X-Git-Tag: v2.1.0-rc1~164 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=3badf2bf32930336a4902002d840402adb6859e1;hp=3badf2bf32930336a4902002d840402adb6859e1 Fix: make lttng expand path for trace output opt lttng create --output was passing the path string to the session daemon and thus, for relative path like './mytraces', it was created in the current directory of the session daemon. Now lttng command line uses the realpath(3) of the --output string and denies creation if multiple level of directory does not exist (Ex: /tmp/foo/bar/chap, if foo/ does not exist, it is refused). Directory creation still occurs on the session daemon side. Reported-by: Ettore Del Negro Signed-off-by: David Goulet ---