Date: Sun, 2 Jan 2005 16:47:41 +0100 (CET) From: Nicolas Rachinsky <list@rachinsky.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/75722: /usr/libexec/save-entropy ignores entropy_save_sz [patch] Message-ID: <20050102154741.E5CD781CA9@pc5.i.0x5.de> Resent-Message-ID: <200501021550.j02FoQ6h041894@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75722
>Category: conf
>Synopsis: /usr/libexec/save-entropy ignores entropy_save_sz [patch]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 02 15:50:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Nicolas Rachinsky
>Release: FreeBSD 4.10-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD pc1 5.3-RELEASE FreeBSD 5.3-RELEASE #4: Sat Jan 1 17:40:50 CET 2005 root@pc1:/usr/src/sys/i386/compile/PC1 i386
>Description:
/usr/libexec/save-entropy ignores entropy_save_sz from rc.conf
>How-To-Repeat:
change entropy_save_sz to a non default value. It will be ignored.
>Fix:
Apply the following patch in src/libexec/save-entropy:
--- save-entropy.sh.orig Sun Jan 2 16:41:55 2005
+++ save-entropy.sh Sun Jan 2 16:45:20 2005
@@ -86,7 +86,7 @@
done
dd if=/dev/random of="${entropy_dir}/saved-entropy.1" \
- bs=2048 count=1 2> /dev/null
+ bs="${entropy_save_sz}" count=1 2> /dev/null
exit 0
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050102154741.E5CD781CA9>
