fs-sink: handle trace name
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 2 Jun 2017 14:33:19 +0000 (10:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 21:02:58 +0000 (17:02 -0400)
commit9b4f54fb0049703e0df1c634c0aa9f96e22c2c89
treea90dc0bfd89a535f1a938a6c3e6d291c58948c96
parent79697a58b5e4cfc4235b021e19681bbff7b7b0b6
fs-sink: handle trace name

Now the fs-sink uses the trace name to create the output path.
The trace name is appended after the path argument passed on the command
line.
If the resulting path exists, the plugin increments a numerical suffix
until it finds one or reaches INT_MAX.

The trace name is refused if it is ".." or contains "../".

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/fs-sink/write.c
This page took 0.024085 seconds and 4 git commands to generate.