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:
parent
a7a6092f01
commit
0f70cd067f
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user