fb7efbf012
Most notably revert of
743970d2ea
Resolves: #1170765,#1202598
29 lines
998 B
Diff
29 lines
998 B
Diff
From ab050366e780ba7e2ecda2c60689f21d0aee3b9e Mon Sep 17 00:00:00 2001
|
|
From: Daniel Mack <daniel@zonque.org>
|
|
Date: Tue, 7 Jul 2015 17:21:03 -0400
|
|
Subject: [PATCH 03/47] journal-gatewayd: fix tmpfile logic
|
|
|
|
"rw" is not a valid mode string for f*open(). This got broken in
|
|
cc02a7b33049 ("journal-gatewayd: factor out opening of temp
|
|
file").
|
|
---
|
|
src/journal-remote/journal-gatewayd.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
|
|
index d9450ae..9a09f40 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;
|
|
--
|
|
2.5.0
|
|
|