aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-05-23 19:32:01 -0400
committerMike Frysinger <vapier@gentoo.org>2012-05-23 19:32:59 -0400
commitf5ba232fb41e5e923daa5f573bd58c13daff6f40 (patch)
tree8b7a0bdd95105633f0f1c63cc5832e512c847ffa /src
parent7e9861da0e5f7ddc2d1baedbf50008a36ce403a9 (diff)
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 <marcoep@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src')
-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 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