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
This commit is contained in:
Alexander V Vershilov 2013-07-14 10:55:24 +04:00 committed by William Hubbs
parent a7a6092f01
commit 0f70cd067f

View File

@ -351,6 +351,9 @@ rc_status(int argc, char **argv)
rc_stringlist_free(tmp); rc_stringlist_free(tmp);
} }
l->value = p; 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_level("Dynamic", "needed");
print_services(NULL, nservices); print_services(NULL, nservices);
print_level("Dynamic", "manual"); print_level("Dynamic", "manual");