This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b01004eb8ffbc300ca1312803e291edcf9770010 commit b01004eb8ffbc300ca1312803e291edcf9770010 Author: Guillem Jover <guil...@debian.org> AuthorDate: Mon Jan 30 03:10:13 2017 +0100 s-s-d: Compare foundany against 0 instead of treating it like a boolean This variable contains a counter. --- 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 c1d7d8181..1ffed7723 100644 --- a/debian/changelog +++ b/debian/changelog @@ -57,6 +57,8 @@ dpkg (1.19.3) UNRELEASED; urgency=medium - dpkg-source: Use new format argument for Dpkg::Source::Package->new(). - dpkg-shlibdeps: Remove unused variable. - dpkg-scanpackages: Unroll a single iteration loop. + - start-stop-daemon: Compare foundany against 0 instead of treating it + like a boolean. * Build system: - get-version: Use a format string with printf. - run-script: Use $() instead of deprecated ``. diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index e0339c4cc..13c453fa1 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -2037,7 +2037,7 @@ do_procinit(void) prog_status = pid_status; } closedir(procdir); - if (!foundany) + if (foundany == 0) fatal("nothing in /proc - not mounted?"); return prog_status; -- Dpkg.Org's dpkg