]> git.pld-linux.org Git - packages/systemd.git/blob - journal-gatewayd-fdopen.patch
Release 13. Turned off PLD RAID/LVM config inside containers.
[packages/systemd.git] / journal-gatewayd-fdopen.patch
1 From 9e19c04f3a4e03e37dc89b63c1ae9b0a7c611810 Mon Sep 17 00:00:00 2001
2 From: Daniel Mack <daniel@zonque.org>
3 Date: Tue, 7 Jul 2015 17:21:03 -0400
4 Subject: [PATCH] journal-gatewayd: fix tmpfile logic
5
6 "rw" is not a valid mode string for f*open(). This got broken in
7 cc02a7b33049 ("journal-gatewayd: factor out opening of temp
8 file").
9 ---
10  src/journal-remote/journal-gatewayd.c | 2 +-
11  1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
14 index d9450ae..9a09f40 100644
15 --- a/src/journal-remote/journal-gatewayd.c
16 +++ b/src/journal-remote/journal-gatewayd.c
17 @@ -132,7 +132,7 @@ static int request_meta_ensure_tmp(RequestMeta *m) {
18                  if (fd < 0)
19                          return fd;
20  
21 -                m->tmp = fdopen(fd, "rw");
22 +                m->tmp = fdopen(fd, "w+");
23                  if (!m->tmp) {
24                          safe_close(fd);
25                          return -errno;
This page took 0.029854 seconds and 3 git commands to generate.