summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-08 16:16:44 +0200
committerTom Gundersen <teg@jklm.no>2015-07-08 16:16:44 +0200
commit1161d5d28bb1f05a4b3837542db7cf3e23cc047e (patch)
tree0421bdc0bbe39364eb71f84f31a7bd8421f012b1
parentb9fd7bb60a81849989c2102e46ee97e79b899328 (diff)
parent9e19c04f3a4e03e37dc89b63c1ae9b0a7c611810 (diff)
Merge pull request #510 from zonque/journal-gatewayd
journal-gatewayd: fix tmpfile logic
-rw-r--r--src/journal-remote/journal-gatewayd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
index d9450ae8cd..9a09f401e0 100644
--- a/src/journal-remote/journal-gatewayd.c
+++ b/src/journal-remote/journal-gatewayd.c
@@ -132,7 +132,7 @@ static int request_meta_ensure_tmp(RequestMeta *m) {
if (fd < 0)
return fd;
- m->tmp = fdopen(fd, "rw");
+ m->tmp = fdopen(fd, "w+");
if (!m->tmp) {
safe_close(fd);
return -errno;