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 authored and William Hubbs committed 2013-07-16 12:53:03 -05:00
1 parent a7a6092f01
commit 0f70cd067f
1 file changed
+3
+3
View File
@@ -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");