aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-05-16 18:16:04 -0400
committerMike Frysinger <vapier@gentoo.org>2012-05-16 18:16:51 -0400
commit6241f17e95f9e369a923a1dd205488ad7b7d80ee (patch)
treebd3cbf57abb0d61d3ce0c250302e0170b9dd3628 /src/rc
parent6cecc7b4a6bd2fed40006d85f3ea855723c93840 (diff)
rc: fix thinko in applet collapse
We want to lookup the service based on the applet name. Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc-applets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index 21562f0d..4bc5bdb4 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -295,7 +295,7 @@ do_service(int argc, char **argv)
eerrorx("%s: no service specified", applet);
state = rc_service_state(service);
- bit = lookup_service_state(service);
+ bit = lookup_service_state(applet);
if (bit) {
ok = (state & bit);
} else if (strcmp(applet, "service_started_daemon") == 0) {