From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SXL2F-0005iH-1O for garchives@archives.gentoo.org; Wed, 23 May 2012 23:32:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03737E099D; Wed, 23 May 2012 23:31:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C10F2E099D for ; Wed, 23 May 2012 23:31:56 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 048601B4010 for ; Wed, 23 May 2012 23:31:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C6198E542A for ; Wed, 23 May 2012 23:31:53 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1337815979.f5ba232fb41e5e923daa5f573bd58c13daff6f40.vapier@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-applets.c X-VCS-Directories: src/rc/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: f5ba232fb41e5e923daa5f573bd58c13daff6f40 X-VCS-Branch: master Date: Wed, 23 May 2012 23:31:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 78e19f2f-c00a-47e3-a15b-3eccdd6d44e8 X-Archives-Hash: 7d94eaa9aa585160a6e92014173fe77b commit: f5ba232fb41e5e923daa5f573bd58c13daff6f40 Author: Mike Frysinger gentoo org> AuthorDate: Wed May 23 23:32:01 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed May 23 23:32:59 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Df5ba232f rc: fix inverted string compare logic X-Gentoo-Bug: 417227 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=3D417227 Reported-by: sphakka gmail.com> Signed-off-by: Mike Frysinger gentoo.org> --- src/rc/rc-applets.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index 4bc5bdb..4481b08 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 =3D=3D NULL || *service =3D=3D '\0') eerrorx("%s: no service specified", applet); =20 - if (strncmp(applet, "mark_", 5) && + if (!strncmp(applet, "mark_", 5) && (bit =3D lookup_service_state(applet + 5))) ok =3D rc_service_mark(service, bit); else