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>
This commit is contained in:
parent
6cecc7b4a6
commit
6241f17e95
@ -295,7 +295,7 @@ do_service(int argc, char **argv)
|
|||||||
eerrorx("%s: no service specified", applet);
|
eerrorx("%s: no service specified", applet);
|
||||||
|
|
||||||
state = rc_service_state(service);
|
state = rc_service_state(service);
|
||||||
bit = lookup_service_state(service);
|
bit = lookup_service_state(applet);
|
||||||
if (bit) {
|
if (bit) {
|
||||||
ok = (state & bit);
|
ok = (state & bit);
|
||||||
} else if (strcmp(applet, "service_started_daemon") == 0) {
|
} else if (strcmp(applet, "service_started_daemon") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user