mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
Merge pull request #510 from zonque/journal-gatewayd
journal-gatewayd: fix tmpfile logic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user