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 1SUmWV-0002Y3-Cq for garchives@archives.gentoo.org; Wed, 16 May 2012 22:16:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5CA2E0920; Wed, 16 May 2012 22:16:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8115EE0920 for ; Wed, 16 May 2012 22:16:39 +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 E43BE643ED for ; Wed, 16 May 2012 22:16:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 95693E5429 for ; Wed, 16 May 2012 22:16:37 +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: <1337206611.6241f17e95f9e369a923a1dd205488ad7b7d80ee.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: 6241f17e95f9e369a923a1dd205488ad7b7d80ee X-VCS-Branch: master Date: Wed, 16 May 2012 22:16:37 +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: 41fe7950-2d09-4d78-ac79-7f2127ad9f2b X-Archives-Hash: daf5a22c437b7c9c8555881f88f9db55 commit: 6241f17e95f9e369a923a1dd205488ad7b7d80ee Author: Mike Frysinger gentoo org> AuthorDate: Wed May 16 22:16:04 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed May 16 22:16:51 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D6241f17e rc: fix thinko in applet collapse We want to lookup the service based on the applet name. Reported-by: Christian Ruppert gentoo.org> 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 21562f0..4bc5bdb 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -295,7 +295,7 @@ do_service(int argc, char **argv) eerrorx("%s: no service specified", applet); =20 state =3D rc_service_state(service); - bit =3D lookup_service_state(service); + bit =3D lookup_service_state(applet); if (bit) { ok =3D (state & bit); } else if (strcmp(applet, "service_started_daemon") =3D=3D 0) {