From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7BA621381F3 for ; Tue, 16 Jul 2013 18:56:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05D26E0AAF; Tue, 16 Jul 2013 18:56:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9626AE0AAF for ; Tue, 16 Jul 2013 18:56:29 +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 AA5F233E999 for ; Tue, 16 Jul 2013 18:56:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 1D817E5463 for ; Tue, 16 Jul 2013 18:56:26 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1373997183.0f70cd067f4941ce7d9ec817dcf102952a1e8d44.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-status.c X-VCS-Directories: src/rc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 0f70cd067f4941ce7d9ec817dcf102952a1e8d44 X-VCS-Branch: master Date: Tue, 16 Jul 2013 18:56:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8437682d-70a0-43ac-9e31-ece66d779d3b X-Archives-Hash: be1ae1eaf83a01810d2880a123a4dca3 commit: 0f70cd067f4941ce7d9ec817dcf102952a1e8d44 Author: Alexander V Vershilov gentoo org> AuthorDate: Sun Jul 14 06:55:24 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Jul 16 17:53:03 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=0f70cd06 rc-status: fix -a to show all services We need to unset rc_svcname so that all of the services are added to the list to display. X-Gentoo-Bug: 409787 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=409787 --- src/rc/rc-status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index f096851..aba192f 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -351,6 +351,9 @@ rc_status(int argc, char **argv) rc_stringlist_free(tmp); } l->value = p; + /* we are unsetting RC_SVCNAME because last loaded service + wount be added to list */ + unsetenv(RC_SVCNAME); print_level("Dynamic", "needed"); print_services(NULL, nservices); print_level("Dynamic", "manual");