Fix: make lttng expand path for trace output opt
authorDavid Goulet <dgoulet@efficios.com>
Thu, 5 Apr 2012 15:39:59 +0000 (11:39 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 5 Apr 2012 15:58:01 +0000 (11:58 -0400)
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 <ettore@ettoredelnegro.me>
Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.026331 seconds and 5 git commands to generate.