X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fstream.c;h=e8a9fd9b4018fdecc1d0f2f6e77b97db623a1b5d;hb=bdafebb5195cfda710b32b019f9cac6c4d86f42a;hp=da0b3fd2680bd689846f6c049491bfabf5ddcbae;hpb=064bcffc6febc39f3e4f25fe1fa7e9b7e8718371;p=deliverable%2Flttng-tools.git diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index da0b3fd26..e8a9fd9b4 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -123,13 +123,8 @@ struct relay_stream *stream_create(struct ctf_trace *trace, * No need to use run_as API here because whatever we receive, * the relayd uses its own credentials for the stream files. */ - ret = utils_create_stream_file(stream->path_name, stream->channel_name, - stream->tracefile_size, 0, -1, -1, NULL); - if (ret < 0) { - ERR("Create output file"); - goto end; - } - stream->stream_fd = stream_fd_create(ret); + stream->stream_fd = stream_fd_create(stream->path_name, + stream->channel_name, stream->tracefile_size, 0, NULL); if (!stream->stream_fd) { if (close(ret)) { PERROR("Error closing file %d", ret);