From f5ba232fb41e5e923daa5f573bd58c13daff6f40 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 May 2012 19:32:01 -0400 Subject: rc: fix inverted string compare logic X-Gentoo-Bug: 417227 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=417227 Reported-by: sphakka 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 4bc5bdb4..4481b083 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -343,7 +343,7 @@ do_mark_service(int argc, char **argv) if (service == NULL || *service == '\0') eerrorx("%s: no service specified", applet); - if (strncmp(applet, "mark_", 5) && + if (!strncmp(applet, "mark_", 5) && (bit = lookup_service_state(applet + 5))) ok = rc_service_mark(service, bit); else -- cgit v1.2.3