]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools: lxc-start: set configfile after load_config 1338/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 2 Dec 2016 13:15:40 +0000 (14:15 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 2 Dec 2016 13:21:55 +0000 (14:21 +0100)
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

index 984a28fd1ebdba8cce4bdfc80aeec20204fc711b..c85305b27316fec75af7ccfa7886175d656b7ade 100644 (file)
@@ -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;