mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-31 01:47:15 +03:00
Merge pull request #510 from zonque/journal-gatewayd
journal-gatewayd: fix tmpfile logic
This commit is contained in:
commit
1161d5d28b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user