]> git.proxmox.com Git - lxc.git/blob - debian/patches/extra/0001-conf-use-SYSERROR-on-lxc_write_to_file-errors.patch
merge 2 fixups:
[lxc.git] / debian / patches / extra / 0001-conf-use-SYSERROR-on-lxc_write_to_file-errors.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Fri, 4 Jan 2019 12:05:49 +0100
4 Subject: [PATCH] conf: use SYSERROR on lxc_write_to_file errors
5
6 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 ---
8 src/lxc/conf.c | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11 diff --git a/src/lxc/conf.c b/src/lxc/conf.c
12 index 3d0e4a19..0d86d66e 100644
13 --- a/src/lxc/conf.c
14 +++ b/src/lxc/conf.c
15 @@ -2681,8 +2681,8 @@ int setup_sysctl_parameters(struct lxc_list *sysctls)
16 ret = lxc_write_to_file(filename, elem->value,
17 strlen(elem->value), false, 0666);
18 if (ret < 0) {
19 - ERROR("Failed to setup sysctl parameters %s to %s",
20 - elem->key, elem->value);
21 + SYSERROR("Failed to setup sysctl parameters %s to %s",
22 + elem->key, elem->value);
23 return -1;
24 }
25 }
26 @@ -2716,8 +2716,8 @@ int setup_proc_filesystem(struct lxc_list *procs, pid_t pid)
27 ret = lxc_write_to_file(filename, elem->value,
28 strlen(elem->value), false, 0666);
29 if (ret < 0) {
30 - ERROR("Failed to setup proc filesystem %s to %s",
31 - elem->filename, elem->value);
32 + SYSERROR("Failed to setup proc filesystem %s to %s",
33 + elem->filename, elem->value);
34 return -1;
35 }
36 }
37 --
38 2.11.0
39