summaryrefslogtreecommitdiff
path: root/test/test-kdbus-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-kdbus-monitor.c')
-rw-r--r--test/test-kdbus-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-kdbus-monitor.c b/test/test-kdbus-monitor.c
index 62e5a17..e5e9804 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;