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 1SXa7T-0004KM-OC for garchives@archives.gentoo.org; Thu, 24 May 2012 15:38:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 813EFE085D; Thu, 24 May 2012 15:38:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B3D8E085D for ; Thu, 24 May 2012 15:38:07 +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 A684E1B4052 for ; Thu, 24 May 2012 15:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 70784E542A for ; Thu, 24 May 2012 15:38:05 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1337873771.28c13790ff7aba6a7f170b9b091b28648d4948a7.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:openrc-0.10.x 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: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 28c13790ff7aba6a7f170b9b091b28648d4948a7 X-VCS-Branch: openrc-0.10.x Date: Thu, 24 May 2012 15:38:05 +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: 24543074-16c2-4704-b25b-9a163f5a31b0 X-Archives-Hash: 4bca5c49119ad3e36e6be347ba1739f0 commit: 28c13790ff7aba6a7f170b9b091b28648d4948a7 Author: Mike Frysinger gentoo org> AuthorDate: Wed May 23 23:32:01 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu May 24 15:36:11 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D28c13790 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