From 6241f17e95f9e369a923a1dd205488ad7b7d80ee Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 16 May 2012 18:16:04 -0400 Subject: rc: fix thinko in applet collapse We want to lookup the service based on the applet name. Reported-by: Christian Ruppert Signed-off-by: Mike Frysinger --- src/rc/rc-applets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3