From: Mathieu Desnoyers Date: Wed, 6 Nov 2013 19:52:59 +0000 (-0500) Subject: ctf writer BSD compatibily: remove O_DIRECTORY X-Git-Tag: v1.2.0-rc1~39^2~23 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=1b8180b91647e07b243c472e1f0c6ae198f82585 ctf writer BSD compatibily: remove O_DIRECTORY Not strictly needed, especially since we are creating the directory ourself. Signed-off-by: Mathieu Desnoyers --- 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;