Use O_RDWR for open write mode (for mmap)
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 17b7bc232f290031e350ad6b8683b907f7d4c75c..cc882f60b02d64ebbe777701c50c69755bf8007b 100644 (file)
@@ -60,7 +60,7 @@ struct trace_descriptor *ctf_text_open_trace(const char *path, int flags)
        pos = g_new0(struct ctf_text_stream_pos, 1);
 
        switch (flags & O_ACCMODE) {
-       case O_WRONLY:
+       case O_RDWR:
                if (!path)
                        fp = stdout;
                else
This page took 0.022373 seconds and 4 git commands to generate.