From: Stéphane Graber Date: Sat, 14 Jun 2014 19:58:24 +0000 (-0400) Subject: lxc-autostart: Respect -P X-Git-Tag: lxc-1.0.5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f38aea22e460bfd479f178181e0d35f0b4b5302;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 2b553982e..6e3776176 100644 --- a/src/lxc/lxc_autostart.c +++ b/src/lxc/lxc_autostart.c @@ -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;