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 2E8C8138A1A for ; Thu, 22 Jan 2015 18:54:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B736E093D; Thu, 22 Jan 2015 18:54:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B655BE093D for ; Thu, 22 Jan 2015 18:54:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E96843403C1 for ; Thu, 22 Jan 2015 18:54:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12EFC10250 for ; Thu, 22 Jan 2015 18:54:24 +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: <1421952821.cddb4aad08615420320f75050042d946b18d2bb5.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/start-stop-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: cddb4aad08615420320f75050042d946b18d2bb5 X-VCS-Branch: master Date: Thu, 22 Jan 2015 18:54:24 +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: 2461f100-c69e-436f-ab0d-41231d5c939e X-Archives-Hash: 13f0e0a74d03379745c7978c5173c3a8 commit: cddb4aad08615420320f75050042d946b18d2bb5 Author: Will Miles sgl com> AuthorDate: Sat Jan 10 00:34:26 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Jan 22 18:53:41 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=cddb4aad Fix off-by-one error in --test argument printout in start-stop-daemon. Fixes #34. --- src/rc/start-stop-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 6229bbf..3afbf2e 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -1075,7 +1075,7 @@ start_stop_daemon(int argc, char **argv) exit (EXIT_SUCCESS); einfon("Would start"); - while (argc-- >= 0) + while (argc-- > 0) printf(" %s", *argv++); printf("\n"); eindent();