X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=fb4ef730d7619c780c7797221ce625c755b08bd6;hp=af1809efc8a0390986027bded924e6d2b3bb932e;hb=ff48c2b023858d7d2daa4a0b0f7e67b9861040c1;hpb=edcad9c1c88e6e698040855d7518d0c27dfc4489 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index af1809ef..fb4ef730 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -2010,7 +2010,7 @@ int ctf_open_file_stream_read(struct ctf_trace *td, const char *path, int flags, snprintf(index_name, strlen(path) + sizeof(INDEX_PATH), INDEX_PATH, path); - if (faccessat(td->dirfd, index_name, O_RDONLY, flags) < 0) { + if (bt_faccessat(td->dirfd, td->parent.path, index_name, O_RDONLY, 0) < 0) { ret = create_stream_packet_index(td, file_stream); if (ret) { fprintf(stderr, "[error] Stream index creation error.\n");