From: Stéphane Graber Date: Sat, 14 Jun 2014 19:58:24 +0000 (-0400) Subject: lxc-autostart: Respect -P X-Git-Tag: lxc-1.1.0.alpha1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f44b73e189d9870c4205658c4d9d8b7add924419;p=thirdparty%2Flxc.git lxc-autostart: Respect -P -P was only used for log setup and not when retrieving the container list. Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxc_autostart.c b/src/lxc/lxc_autostart.c index 920de67cf..d0e3bfa31 100644 --- a/src/lxc/lxc_autostart.c +++ b/src/lxc/lxc_autostart.c @@ -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;