From 0f70cd067f4941ce7d9ec817dcf102952a1e8d44 Mon Sep 17 00:00:00 2001 From: Alexander V Vershilov Date: Sun, 14 Jul 2013 10:55:24 +0400 Subject: rc-status: fix -a to show all services We need to unset rc_svcname so that all of the services are added to the list to display. X-Gentoo-Bug: 409787 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409787 --- src/rc/rc-status.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index f096851..aba192f 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -351,6 +351,9 @@ rc_status(int argc, char **argv) rc_stringlist_free(tmp); } l->value = p; + /* we are unsetting RC_SVCNAME because last loaded service + wount be added to list */ + unsetenv(RC_SVCNAME); print_level("Dynamic", "needed"); print_services(NULL, nservices); print_level("Dynamic", "manual"); -- cgit v1.2.3