ctf writer BSD compatibily: remove O_DIRECTORY
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Nov 2013 19:52:59 +0000 (14:52 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Nov 2013 19:52:59 +0000 (14:52 -0500)
Not strictly needed, especially since we are creating the directory
ourself.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/writer/writer.c

index 75bf850c98080dbb16433d71c78deb5879715648..5600a92a0a1debd22cfed2066edf5ee16bfae825 100644 (file)
@@ -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;
This page took 0.024738 seconds and 4 git commands to generate.