]> git.proxmox.com Git - mirror_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:55:29 +0000 (11:55 -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 920de67cf1651919730749a3a8e361b1329e54b4..d0e3bfa315655003e80f69fc041951b9ab53e155 100644 (file)
@@ -343,7 +343,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;