summaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
authorAlexander V Vershilov <qnikst@gentoo.org>2013-07-14 10:55:24 +0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-07-16 12:53:03 -0500
commit0f70cd067f4941ce7d9ec817dcf102952a1e8d44 (patch)
tree42fc35a4e1a222b5b72bb4b03afd4d8c266552e8 /src/rc/rc-status.c
parenta7a6092f015642c86ea2a545bc8f6928afcffc66 (diff)
downloadopenrc-0f70cd067f4941ce7d9ec817dcf102952a1e8d44.tar.gz
openrc-0f70cd067f4941ce7d9ec817dcf102952a1e8d44.tar.bz2
openrc-0f70cd067f4941ce7d9ec817dcf102952a1e8d44.tar.xz
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
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c3
1 files changed, 3 insertions, 0 deletions
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");