]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-autostart: Respect -P
authorStéphane Graber <stgraber@ubuntu.com>
Sat, 14 Jun 2014 19:58:24 +0000 (15:58 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 17 Jun 2014 15:56:28 +0000 (11:56 -0400)
-P was only used for log setup and not when retrieving the container list.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_autostart.c

index 2b553982ea75312988b30b8112e6ea7842a42406..6e3776176af24ac0a372b78e032c700c1ab01b4a 100644 (file)
@@ -340,7 +340,7 @@ int main(int argc, char *argv[])
                return 1;
        lxc_log_options_no_override();
 
-       count = list_defined_containers(NULL, NULL, &containers);
+       count = list_defined_containers(my_args.lxcpath[0], NULL, &containers);
 
        if (count < 0)
                return 1;