From 1b8180b91647e07b243c472e1f0c6ae198f82585 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 6 Nov 2013 14:52:59 -0500 Subject: [PATCH] ctf writer BSD compatibily: remove O_DIRECTORY Not strictly needed, especially since we are creating the directory ourself. Signed-off-by: Mathieu Desnoyers --- formats/ctf/writer/writer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/formats/ctf/writer/writer.c b/formats/ctf/writer/writer.c index 75bf850c..5600a92a 100644 --- a/formats/ctf/writer/writer.c +++ b/formats/ctf/writer/writer.c @@ -115,8 +115,7 @@ struct bt_ctf_writer *bt_ctf_writer_create(const char *path) goto error_destroy; } - writer->trace_dir_fd = open(path, O_RDONLY | O_DIRECTORY, - S_IRWXU | S_IRWXG); + writer->trace_dir_fd = open(path, O_RDONLY, S_IRWXU | S_IRWXG); if (writer->trace_dir_fd < 0) { perror("open"); goto error_destroy; -- 2.34.1