Use O_RDWR for open write mode (for mmap)
[babeltrace.git] / converter / babeltrace.c
index ce7664a834d7ddeb1ce01ac3677e7635e1ad7d26..64392d0c5aee66900cdca53db0dc190ddfcea6fa 100644 (file)
@@ -196,7 +196,7 @@ int main(int argc, char **argv)
                goto error_td_read;
        }
 
                goto error_td_read;
        }
 
-       td_write = fmt_write->open_trace(opt_output_path, O_WRONLY);
+       td_write = fmt_write->open_trace(opt_output_path, O_RDWR);
        if (!td_write) {
                fprintf(stdout, "Error opening trace \"%s\" for writing.\n\n",
                        opt_output_path ? : "<none>");
        if (!td_write) {
                fprintf(stdout, "Error opening trace \"%s\" for writing.\n\n",
                        opt_output_path ? : "<none>");
This page took 0.023619 seconds and 4 git commands to generate.