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>
This commit is contained in:
parent
7e9861da0e
commit
f5ba232fb4
@ -343,7 +343,7 @@ do_mark_service(int argc, char **argv)
|
|||||||
if (service == NULL || *service == '\0')
|
if (service == NULL || *service == '\0')
|
||||||
eerrorx("%s: no service specified", applet);
|
eerrorx("%s: no service specified", applet);
|
||||||
|
|
||||||
if (strncmp(applet, "mark_", 5) &&
|
if (!strncmp(applet, "mark_", 5) &&
|
||||||
(bit = lookup_service_state(applet + 5)))
|
(bit = lookup_service_state(applet + 5)))
|
||||||
ok = rc_service_mark(service, bit);
|
ok = rc_service_mark(service, bit);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user