[Reproducible-commits] [dpkg] 33/74: s-s-d: Fix number of entries computation returned by sysctl() on */kFreeBSD

Mattia Rizzolo mattia at debian.org
Sun Jul 3 22:22:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to annotated tag 1.18.8
in repository dpkg.

commit b1e7927080f0a010d7d1ce77106779af72536176
Author: Guillem Jover <guillem at debian.org>
Date:   Thu May 19 02:07:14 2016 +0200

    s-s-d: Fix number of entries computation returned by sysctl() on */kFreeBSD
---
 debian/changelog          | 2 ++
 utils/start-stop-daemon.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bc05c0a..6e54e77 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ dpkg (1.18.8) UNRELEASED; urgency=medium
     into .dsc files. Based on a patch by Martin Pitt <martin.pitt at ubuntu.com>.
     Closes: #779559
   * Add new dpkg-source --no-overwrite-dir extraction option. Closes: #826334
+  * Fix number of entries computation returned by sysctl() on */kFreeBSD in
+    start-stop-daemon.
   * Perl modules:
     - Use warnings::warnif() instead of carp() for deprecated warnings.
     - Add new format_range() method and deprecate dpkg() and rfc822() methods
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 479a129..080e3f3 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -1936,7 +1936,7 @@ do_procinit(void)
 		return false;
 	if (len == 0)
 		return false;
-	nentries = len;
+	nentries = len / sizeof(*kp);
 
 	for (i = 0; i < nentries; i++) {
 		enum status_code pid_status;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list