journal-gatewayd: fix tmpfile logic

"rw" is not a valid mode string for f*open(). This got broken in
cc02a7b330 ("journal-gatewayd: factor out opening of temp
file").
This commit is contained in:
Daniel Mack
2015-07-07 17:21:27 -04:00
parent 9a50ce20ef
commit 9e19c04f3a
+1 -1
View File
@@ -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;