diff options
Diffstat (limited to 'test/test-kdbus-monitor.c')
-rw-r--r-- | test/test-kdbus-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-kdbus-monitor.c b/test/test-kdbus-monitor.c index 62e5a1788ae..e5e9804264e 100644 --- a/test/test-kdbus-monitor.c +++ b/test/test-kdbus-monitor.c @@ -150,7 +150,7 @@ int main(int argc, char **argv) bus = argv[1]; file = argv[2]; - output_fd = open(file, O_CREAT | O_RDWR, 0644); + output_fd = open(file, O_CREAT | O_WRONLY | O_TRUNC, 0644); if (output_fd < 0) { fprintf(stderr, "Unable to open '%s': %m\n", file); return EXIT_FAILURE; |