]> git.proxmox.com Git - lxc.git/commitdiff
merge: tools: lxc-start: set configfile after load_config
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 2 Dec 2016 13:17:20 +0000 (14:17 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 2 Dec 2016 13:22:16 +0000 (14:22 +0100)
debian/patches/lxc-start-configfile.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/lxc-start-configfile.patch b/debian/patches/lxc-start-configfile.patch
new file mode 100644 (file)
index 0000000..55f4939
--- /dev/null
@@ -0,0 +1,32 @@
+From b586db430b5eb2c8212f5e95fca49b78657f6edb Mon Sep 17 00:00:00 2001
+From: Wolfgang Bumiller <w.bumiller@proxmox.com>
+Date: Fri, 2 Dec 2016 14:15:40 +0100
+Subject: [PATCH] tools: lxc-start: set configfile after load_config
+
+Same change as in 6118210e0a which was missing in lxc-start
+and back then is_defined() wasn't being called.
+
+Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
+---
+ src/lxc/tools/lxc_start.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/lxc/tools/lxc_start.c b/src/lxc/tools/lxc_start.c
+index 984a28f..c85305b 100644
+--- a/src/lxc/tools/lxc_start.c
++++ b/src/lxc/tools/lxc_start.c
+@@ -259,6 +259,11 @@ int main(int argc, char *argv[])
+                       lxc_container_put(c);
+                       exit(err);
+               }
++              c->configfile = strdup(my_args.rcfile);
++              if (!c->configfile) {
++                      ERROR("Out of memory setting new config filename");
++                      goto out;
++              }
+       } else {
+               int rc;
+-- 
+2.1.4
+
index c4f6813c6356674113fc9cd9f091c7efb31f2ef8..272d89b1d1d5372b8ed3a88c4c978aa70d2a6f92 100644 (file)
@@ -4,3 +4,4 @@ run-lxcnetaddbr.patch
 deny-rw-mounting-of-sys-and-proc.patch
 0001-separate-the-limiting-from-the-namespaced-cgroup-roo.patch
 0002-start-initutils-make-cgroupns-separation-level-confi.patch
+lxc-start-configfile.patch