Your message dated Sun, 02 Dec 2018 12:07:02 +0000
with message-id <[email protected]>
and subject line Bug#773297: fixed in rng-tools 5-1
has caused the Debian Bug report #773297,
regarding rng-tools: init script should not fail if hardware is not present
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
773297: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773297
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rng-tools
Version: 2-unofficial-mt.14-1
Severity: normal
Tags: patch

Hi,

it looks like when the rng-tools package is installed on a system
without a hwrng device, the init script returns 1, which I think is
wrong.  The patch below seems to fix it for me.

diff -r 002107a1df85 init.d/rng-tools
--- a/init.d/rng-tools  Tue Dec 16 15:14:07 2014 +0100
+++ b/init.d/rng-tools  Tue Dec 16 15:37:43 2014 +0100
@@ -46,14 +46,14 @@
 
        echo "(Hardware RNG device inode not found)"
        echo "$0: Cannot find a hardware RNG device to use." >&2
-       exit 1
+       return 1
 }
 
 START="--start --quiet --pidfile ${PIDFILE} --startas ${DAEMON} --name ${NAME}"
 case "$1" in
   start)
        echo -n "Starting $DESC: "
-       finddevice
+       finddevice || exit 0
        START="${START} -- -r ${HRNGDEVICE} ${RNGDOPTIONS}"
        if start-stop-daemon ${START} >/dev/null 2>&1 ; then
                echo "${NAME}."


Cheers,
Julien
-- 
Julien Cristau          <[email protected]>
Logilab                 http://www.logilab.fr/
Informatique scientifique & gestion de connaissances

--- End Message ---
--- Begin Message ---
Source: rng-tools
Source-Version: 5-1

We believe that the bug you reported is fixed in the latest version of
rng-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aron Xu <[email protected]> (supplier of updated rng-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 02 Dec 2018 18:00:52 +0800
Source: rng-tools
Binary: rng-tools
Architecture: source
Version: 5-1
Distribution: unstable
Urgency: medium
Maintainer: Henrique de Moraes Holschuh <[email protected]>
Changed-By: Aron Xu <[email protected]>
Description:
 rng-tools  - Daemon to use a Hardware TRNG
Closes: 384921 587157 620692 653482 692450 773297 774920 828835
Changes:
 rng-tools (5-1) unstable; urgency=medium
 .
   [ David Härdeman ]
   * Add lsb_logging to init.d script (Closes: #384921, #773297)
 .
   [ Christian Kastner]
   * Use logcheck-conform filtering rules in logcheck.ignore (Closes: #620692)
 .
   [ Peter Eisentraut ]
   * Add support for "status" action to init.d script (Closes: #653482)
 .
   [ Ivan Baldo ]
   * Add descriptions in init.d script (Closes: #774920)
 .
   [ Aron Xu ]
   * Non-maintainer upload.
   * Synchronize source tree with Ubuntu (Closes: #587157, #692450, #828835)
   * Rewrite debian/rules using dh style
   * Update std-ver to 4.2.1
   * Bump to compat 10
Checksums-Sha1:
 52c82bb4c6fe2600934ae0bbb25dada21575ecd0 1343 rng-tools_5-1.dsc
 3092768ac45315a5dcc0170d05566d1d00dbad96 122182 rng-tools_5.orig.tar.gz
 c9610d6339f46571ca4469d896a4dc7b7bb2aaa0 12012 rng-tools_5-1.debian.tar.xz
 107991b5fa5b30247ae34ee88946fb0b2b13312b 5189 rng-tools_5-1_source.buildinfo
Checksums-Sha256:
 2feacf2d284b9336e7738514d556037ea6f58bbac1726682edcdf306c05a4569 1343 
rng-tools_5-1.dsc
 60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e 122182 
rng-tools_5.orig.tar.gz
 c7a642e57c30b9a45c0e86d4b2914ed6744ae9636f4940321de2ccb691b02a37 12012 
rng-tools_5-1.debian.tar.xz
 1d5747c7486a0c203b53d94d5fd74594fc55362e13ace53eb7ed9cffa68afa41 5189 
rng-tools_5-1_source.buildinfo
Files:
 3e512047ef7b5207480b282fd9fc52c5 1343 utils optional rng-tools_5-1.dsc
 6726cdc6fae1f5122463f24ae980dd68 122182 utils optional rng-tools_5.orig.tar.gz
 9852fa5e05c5ea8b39ad628f05747065 12012 utils optional 
rng-tools_5-1.debian.tar.xz
 9b10b4ff5c1035c62a346c900a002fd6 5189 utils optional 
rng-tools_5-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEXraik9KLDk+VcqtJ3oyCGyc+2gsFAlwDwp4ACgkQ3oyCGyc+
2gvqzwgAljFViJZuDLI/0mW1HwgeZGE4tb9VXWWaUTlUcHEoPXpBcdYOgqxmivDB
CFYiBkFieAFAK0YAxutoP7JsPxL8gxJWfnJhJV+jSVjkSaGItWsDZY1n8hQgvz7t
YgXzP4umDF0K7EmvFi8jjZgzSvsJq2zLX7yZW4m36OJHAgOEE9TdZn2N2Gn7L/Mj
8D5FGwaapS9rKoffS46VEeXn9SFDaNnJhpl4DykJlbZFTH//RusoE9TyRYdKC3ZG
UYh1YvXrNByZJc15Oj/Flznw3icBh4W5XYIr2jBWZtwPBZHQibjBoTCWMW/UX4KK
q/FvbS02PNE9QC8lg2g4cco5LDYZMg==
=kbj4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to