commit: cddb4aad08615420320f75050042d946b18d2bb5
Author: Will Miles <wmiles <AT> sgl <DOT> com>
AuthorDate: Sat Jan 10 00:34:26 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> 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();