projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Implement faccessat wrapper
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index b23026d1b23af2ee7cc38f4ca56fded4570569f2..7788ecbf4b0c1b67d70aa2c7c90256a8520b7d8f 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-2008,7
+2008,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);
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");
ret = create_stream_packet_index(td, file_stream);
if (ret) {
fprintf(stderr, "[error] Stream index creation error.\n");
This page took
0.027192 seconds
and
4
git commands to generate.