From 40f42ced21b1c0c99780b801d28fafd91a858f90 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 17 Jul 2014 23:10:28 -0500 Subject: rc-status: fix infinite loop when using stacked runlevels Remove the recursive call in print_stacked_services which was causing an infinite loop when using stacked runlevels. I would like to thank Doug Freed and Jason Zaman for assisting with tracking this down. X-Gentoo-Bug: 514972 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=514972 --- src/rc/rc-status.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/rc') diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index e38ce11b..62591dae 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -185,7 +185,6 @@ print_stacked_services(const char *runlevel) servicelist = rc_services_in_runlevel(stackedlevel->value); print_services(stackedlevel->value, servicelist); rc_stringlist_free(servicelist); - print_stacked_services(stackedlevel->value); } rc_stringlist_free(stackedlevels); stackedlevels = NULL; -- cgit v1.2.3