summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-02-21 14:55:34 +0100
committerDaniel Mack <zonque@gmail.com>2014-02-21 14:55:34 +0100
commit2ee3fe4072882fae978134e03d46b6cf8b1593d0 (patch)
tree9abf98a231b01e636311a963924529b581955cd2
parent1bffba5fc6cfe77d39404001af422b03027f72d4 (diff)
downloadkdbus-bus-tizen.tar.gz
kdbus-bus-tizen.tar.bz2
kdbus-bus-tizen.zip
test-kdbus-monitor: open output file with O_WRONLY|O_TRUNCupstream/0.20140221.145534cettizen
-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 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;