From 989ea3969c937a1404718860d3f80c061266fb36 Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Tue, 2 Apr 2024 13:43:08 +0200 Subject: [PATCH] tools/lxc_autostart: don't fail when there are no containers Fixes: #3847 Signed-off-by: Alexander Mikhalitsyn --- src/lxc/tools/lxc_autostart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_autostart.c b/src/lxc/tools/lxc_autostart.c index 713e8efdf5..19c7c3db1e 100644 --- a/src/lxc/tools/lxc_autostart.c +++ b/src/lxc/tools/lxc_autostart.c @@ -504,7 +504,7 @@ int lxc_autostart_main(int argc, char *argv[]) toss_list(cmd_groups_list); free(containers); - if (failed == count) + if (failed > 0 && failed == count) exit(EXIT_FAILURE); /* Total failure */ else if (failed > 0) exit(2); /* Partial failure */